From 0cf2b35d99264c52e2d45a320e85374e8e8fa745 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Jan 2007 16:42:04 +0000 Subject: [PATCH] * LDAP NSS module for glibc. svn path=/nixpkgs/trunk/; revision=7682 --- pkgs/os-specific/linux/nss_ldap/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/os-specific/linux/nss_ldap/default.nix 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;