nixpkgs/pkgs/os-specific/linux/nss_ldap/default.nix
Eelco Dolstra a4e77530c8 * nss_ldap: purity fix: don't try to install /etc/ldap.conf.
svn path=/nixpkgs/branches/stdenv-updates/; revision=11850
2008-05-20 09:19:17 +00:00

21 lines
546 B
Nix

{stdenv, fetchurl, openldap}:
stdenv.mkDerivation {
name = "nss_ldap-260";
src = fetchurl {
url = http://www.padl.com/download/nss_ldap-260.tar.gz;
sha256 = "0kn022js39mqmy7g5ba911q46223vk7vcf51x28rbl86lp32zv4v";
};
preInstall = ''
installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2)
substituteInPlace Makefile \
--replace '/usr$(libdir)' $TMPDIR \
--replace 'install-data-local:' 'install-data-local-disabled:'
ensureDir $out/etc
'';
buildInputs = [openldap];
}