Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
81 lines
1.8 KiB
Nix
81 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
autoreconfHook,
|
|
cyrus_sasl,
|
|
docbook_xml_dtd_43,
|
|
docbook_xsl,
|
|
fetchFromGitLab,
|
|
libkrb5,
|
|
libxslt,
|
|
openldap,
|
|
pkg-config,
|
|
util-linux,
|
|
xmlto,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "adcli";
|
|
version = "0.9.2";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "realmd";
|
|
repo = "adcli";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-dipNKlIdc1DpXLg/YJjUxZlNoMFy+rt8Y/+AfWFA4dE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
docbook_xsl
|
|
libxslt # xsltproc
|
|
pkg-config
|
|
util-linux
|
|
xmlto
|
|
];
|
|
|
|
buildInputs = [
|
|
cyrus_sasl
|
|
libkrb5
|
|
openldap
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
configureFlags = [
|
|
"--disable-debug"
|
|
"ac_cv_path_KRB5_CONFIG=${lib.getExe' (lib.getDev libkrb5) "krb5-config"}"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace tools/Makefile.am \
|
|
--replace-fail 'sbin_PROGRAMS' 'bin_PROGRAMS'
|
|
|
|
substituteInPlace doc/Makefile.am \
|
|
--replace-fail 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' \
|
|
'${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl'
|
|
|
|
function patch_docbook() {
|
|
substituteInPlace $1 \
|
|
--replace-fail "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
|
|
"${docbook_xml_dtd_43}/xml/dtd/docbook/docbookx.dtd"
|
|
}
|
|
patch_docbook doc/adcli.xml
|
|
patch_docbook doc/adcli-devel.xml
|
|
patch_docbook doc/adcli-docs.xml
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.freedesktop.org/software/realmd/adcli/adcli.html";
|
|
description = "Helper library and tools for Active Directory client operations";
|
|
mainProgram = "adcli";
|
|
license = lib.licenses.lgpl21Only;
|
|
maintainers = with lib.maintainers; [
|
|
SohamG
|
|
anthonyroussel
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|