2007-01-15 19:42:04 +03:00
|
|
|
{stdenv, fetchurl, openldap}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-03-24 19:00:22 +03:00
|
|
|
name = "nss_ldap-260";
|
2007-01-15 19:42:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-03-24 19:00:22 +03:00
|
|
|
url = http://www.padl.com/download/nss_ldap-260.tar.gz;
|
|
|
|
sha256 = "0kn022js39mqmy7g5ba911q46223vk7vcf51x28rbl86lp32zv4v";
|
2007-01-15 19:42:04 +03:00
|
|
|
};
|
|
|
|
|
2008-05-20 13:19:17 +04:00
|
|
|
preInstall = ''
|
2008-03-24 19:00:22 +03:00
|
|
|
installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2 NSS_LDAP_PATH_CONF=$out/etc/ldap.conf)
|
2008-05-20 13:19:17 +04:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '/usr$(libdir)' $TMPDIR \
|
|
|
|
--replace 'install-data-local:' 'install-data-local-disabled:'
|
2007-01-15 19:42:04 +03:00
|
|
|
ensureDir $out/etc
|
2008-05-20 13:19:17 +04:00
|
|
|
'';
|
2007-01-15 19:42:04 +03:00
|
|
|
|
|
|
|
buildInputs = [openldap];
|
|
|
|
}
|