mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
fc5eebdf8b
(https://svn.nixos.org/repos/nix/nixpkgs/branches/stdenv-updates -r10966:12061). svn path=/nixpkgs/trunk/; revision=12073
21 lines
584 B
Nix
21 lines
584 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 NSS_LDAP_PATH_CONF=$out/etc/ldap.conf)
|
|
substituteInPlace Makefile \
|
|
--replace '/usr$(libdir)' $TMPDIR \
|
|
--replace 'install-data-local:' 'install-data-local-disabled:'
|
|
ensureDir $out/etc
|
|
'';
|
|
|
|
buildInputs = [openldap];
|
|
}
|