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
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
openldap,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nss_ldap";
|
|
version = "265";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.padl.com/download/nss_ldap-${version}.tar.gz";
|
|
sha256 = "1a16q9p97d2blrj0h6vl1xr7dg7i4s8x8namipr79mshby84vdbp";
|
|
};
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./vers_string
|
|
sed -i s,vers_string,./vers_string, Makefile*
|
|
substituteInPlace vers_string --replace "cvslib.pl" "./cvslib.pl"
|
|
'';
|
|
|
|
patches = [ ./crashes.patch ];
|
|
|
|
postPatch = ''
|
|
patch -p0 < ${./nss_ldap-265-glibc-2.16.patch}
|
|
'';
|
|
|
|
preInstall = ''
|
|
installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2 NSS_LDAP_PATH_CONF=$out/etc/ldap.conf)
|
|
substituteInPlace Makefile \
|
|
--replace '/usr$(libdir)' $TMPDIR \
|
|
--replace 'install-data-local:' 'install-data-local-disabled:'
|
|
mkdir -p $out/etc
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
perl # shebang of vers_string
|
|
];
|
|
|
|
buildInputs = [
|
|
openldap
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "LDAP module for the Solaris Nameservice Switch (NSS)";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|