mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
9d8cfc22c3
Broke when updating OpenLDAP>2.5 and has not seen a change since 2017, which is at this point 5y in the past. I think it's safe to say that this tool deserves to being marked broken.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, openldap }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "adtool";
|
|
version = "1.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://gp2x.org/adtool/${pname}-${version}.tar.gz";
|
|
sha256 = "1awmpjamrwivi69i0j2fyrziy9s096ckviqd9c4llc3990mfsn4n";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
];
|
|
|
|
installFlags = [
|
|
"sysconfdir=$(out)/etc"
|
|
];
|
|
|
|
buildInputs = [ openldap ];
|
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
# gcc-10. Otherwise build fails as:
|
|
# ld: ../../src/lib/libactive_directory.a(active_directory.o):/build/adtool-1.3.3/src/lib/active_directory.h:31:
|
|
# multiple definition of `system_config_file'; adtool.o:/build/adtool-1.3.3/src/tools/../../src/lib/active_directory.h:31: first defined here
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
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; {
|
|
description = "Active Directory administration utility for Unix";
|
|
homepage = "https://gp2x.org/adtool";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
broken = true; # does not link against recent libldap versions and unmaintained since 2017
|
|
};
|
|
}
|