nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 39 lines 835 B view raw
1{ stdenv, fetchurl, openldap }: 2 3stdenv.mkDerivation rec { 4 pname = "adtool"; 5 version = "1.3.3"; 6 7 src = fetchurl { 8 url = "https://gp2x.org/adtool/${pname}-${version}.tar.gz"; 9 sha256 = "1awmpjamrwivi69i0j2fyrziy9s096ckviqd9c4llc3990mfsn4n"; 10 }; 11 12 configureFlags = [ 13 "--sysconfdir=/etc" 14 ]; 15 16 installFlags = [ 17 "sysconfdir=$(out)/etc" 18 ]; 19 20 buildInputs = [ openldap ]; 21 22 enableParallelBuilding = true; 23 24 postInstall = '' 25 mkdir -p $out/share/doc/adtool 26 mv $out/etc/* $out/share/doc/adtool 27 rmdir $out/etc 28 ''; 29 30 # It requires an LDAP server for tests 31 doCheck = false; 32 33 meta = with stdenv.lib; { 34 description = "Active Directory administration utility for Unix"; 35 homepage = https://gp2x.org/adtool; 36 license = licenses.gpl2; 37 maintainers = with maintainers; [ peterhoeg ]; 38 }; 39}