summary refs log blame commit diff
path: root/pkgs/os-specific/linux/nss_ldap/default.nix
blob: f6628593150adc757c6ef01f658e26a45b40c3d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                    
{stdenv, fetchurl, openldap}:
   
stdenv.mkDerivation {
  name = "nss_ldap-254";
   
  src = fetchurl {
    url = http://www.padl.com/download/nss_ldap-254.tar.gz;
    md5 = "00475b790d3aff3ccd40a1ab4520965e";
  };

  preInstall = "
    installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2)
    substituteInPlace Makefile --replace '/usr$(libdir)' $TMPDIR
    ensureDir $out/etc
  ";

  buildInputs = [openldap];
}