Unverified Commit d8d0819f authored by Colin's avatar Colin Committed by GitHub
Browse files

adcli: fix and enable strictDeps for cross (#402471)

parents 97e6d418 43f9f545
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
  xmlto,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "adcli";
  version = "0.9.2";

@@ -22,13 +22,14 @@ stdenv.mkDerivation rec {
    domain = "gitlab.freedesktop.org";
    owner = "realmd";
    repo = "adcli";
    rev = version;
    tag = finalAttrs.version;
    hash = "sha256-dipNKlIdc1DpXLg/YJjUxZlNoMFy+rt8Y/+AfWFA4dE=";
  };

  nativeBuildInputs = [
    autoreconfHook
    docbook_xsl
    libxslt # xsltproc
    pkg-config
    util-linux
    xmlto
@@ -37,11 +38,15 @@ stdenv.mkDerivation rec {
  buildInputs = [
    cyrus_sasl
    libkrb5
    libxslt
    openldap
  ];

  configureFlags = [ "--disable-debug" ];
  strictDeps = true;

  configureFlags = [
    "--disable-debug"
    "ac_cv_path_KRB5_CONFIG=${lib.getExe' (lib.getDev libkrb5) "krb5-config"}"
  ];

  postPatch = ''
    substituteInPlace tools/Makefile.am \
@@ -61,15 +66,15 @@ stdenv.mkDerivation rec {
    patch_docbook doc/adcli-docs.xml
  '';

  meta = with lib; {
  meta = {
    homepage = "https://www.freedesktop.org/software/realmd/adcli/adcli.html";
    description = "Helper library and tools for Active Directory client operations";
    mainProgram = "adcli";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [
      SohamG
      anthonyroussel
    ];
    platforms = platforms.linux;
    platforms = lib.platforms.linux;
  };
}
})