diff --git a/pkgs/os-specific/linux/nss_ldap/default.nix b/pkgs/os-specific/linux/nss_ldap/default.nix new file mode 100644 index 000000000000..f6628593150a --- /dev/null +++ b/pkgs/os-specific/linux/nss_ldap/default.nix @@ -0,0 +1,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]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 49c881c98125..07924c935b66 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2278,6 +2278,10 @@ rec { inherit fetchurl stdenv; }; + nss_ldap = import ../os-specific/linux/nss_ldap { + inherit fetchurl stdenv openldap; + }; + ov511 = import ../os-specific/linux/ov511 { inherit fetchurl kernel; stdenv = overrideGCC stdenv gcc34;