1 {lib, stdenv, fetchurl, openldap, perl}:
3 stdenv.mkDerivation rec {
8 url = "http://www.padl.com/download/nss_ldap-${version}.tar.gz";
9 sha256 = "1a16q9p97d2blrj0h6vl1xr7dg7i4s8x8namipr79mshby84vdbp";
13 patchShebangs ./vers_string
14 sed -i s,vers_string,./vers_string, Makefile*
15 substituteInPlace vers_string --replace "cvslib.pl" "./cvslib.pl"
18 patches = [ ./crashes.patch ];
21 patch -p0 < ${./nss_ldap-265-glibc-2.16.patch}
25 installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2 NSS_LDAP_PATH_CONF=$out/etc/ldap.conf)
26 substituteInPlace Makefile \
27 --replace '/usr$(libdir)' $TMPDIR \
28 --replace 'install-data-local:' 'install-data-local-disabled:'
33 perl # shebang of vers_string
41 description = "LDAP module for the Solaris Nameservice Switch (NSS)";
42 license = licenses.gpl2Plus;
43 platforms = platforms.linux;