nixpkgs/pkgs/by-name/ad/adcli/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.7 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
autoreconfHook,
cyrus_sasl,
docbook_xml_dtd_43,
docbook_xsl,
fetchFromGitLab,
libkrb5,
libxslt,
openldap,
pkg-config,
util-linux,
xmlto,
2022-07-12 19:19:13 +00:00
}:
stdenv.mkDerivation rec {
pname = "adcli";
2022-10-08 11:15:13 +00:00
version = "0.9.2";
2022-07-12 19:19:13 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "realmd";
repo = "adcli";
2022-07-12 19:19:13 +00:00
rev = version;
hash = "sha256-dipNKlIdc1DpXLg/YJjUxZlNoMFy+rt8Y/+AfWFA4dE=";
2022-07-12 19:19:13 +00:00
};
2022-10-08 11:20:24 +00:00
nativeBuildInputs = [
autoreconfHook
docbook_xsl
pkg-config
2022-10-08 11:20:24 +00:00
util-linux
xmlto
];
buildInputs = [
cyrus_sasl
2022-10-08 11:20:24 +00:00
libkrb5
libxslt
openldap
2022-10-08 11:20:24 +00:00
];
configureFlags = [ "--disable-debug" ];
2022-07-12 19:19:13 +00:00
postPatch = ''
substituteInPlace tools/Makefile.am \
--replace-fail 'sbin_PROGRAMS' 'bin_PROGRAMS'
2022-07-12 19:19:13 +00:00
substituteInPlace doc/Makefile.am \
--replace-fail 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' \
'${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl'
2022-07-12 19:19:13 +00:00
2022-10-08 11:20:24 +00:00
function patch_docbook() {
2022-07-12 19:19:13 +00:00
substituteInPlace $1 \
--replace-fail "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
"${docbook_xml_dtd_43}/xml/dtd/docbook/docbookx.dtd"
2022-07-12 19:19:13 +00:00
}
patch_docbook doc/adcli.xml
patch_docbook doc/adcli-devel.xml
patch_docbook doc/adcli-docs.xml
'';
2022-10-08 11:15:13 +00:00
2022-07-12 19:19:13 +00:00
meta = with lib; {
homepage = "https://www.freedesktop.org/software/realmd/adcli/adcli.html";
description = "Helper library and tools for Active Directory client operations";
mainProgram = "adcli";
2022-07-12 19:19:13 +00:00
license = licenses.lgpl21Only;
maintainers = with maintainers; [
SohamG
anthonyroussel
];
2022-07-12 19:19:13 +00:00
platforms = platforms.linux;
};
}