nixpkgs/pkgs/tools/admin/adtool/default.nix

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

40 lines
835 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, openldap }:
2018-07-06 08:51:24 +02:00
stdenv.mkDerivation rec {
pname = "adtool";
2018-07-06 08:51:24 +02:00
version = "1.3.3";
src = fetchurl {
url = "https://gp2x.org/adtool/${pname}-${version}.tar.gz";
2018-07-06 08:51:24 +02:00
sha256 = "1awmpjamrwivi69i0j2fyrziy9s096ckviqd9c4llc3990mfsn4n";
};
configureFlags = [
"--sysconfdir=/etc"
];
installFlags = [
"sysconfdir=$(out)/etc"
];
buildInputs = [ openldap ];
enableParallelBuilding = true;
postInstall = ''
mkdir -p $out/share/doc/adtool
mv $out/etc/* $out/share/doc/adtool
rmdir $out/etc
'';
# It requires an LDAP server for tests
doCheck = false;
meta = with lib; {
2018-07-06 08:51:24 +02:00
description = "Active Directory administration utility for Unix";
homepage = "https://gp2x.org/adtool";
2018-07-06 08:51:24 +02:00
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
};
}