2012-09-14 00:06:25 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openldap, python, pam, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nss-pam-ldapd-${version}";
|
2017-05-24 17:53:54 +02:00
|
|
|
version = "0.9.7";
|
2012-09-14 00:06:25 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://arthurdejong.org/nss-pam-ldapd/${name}.tar.gz";
|
2017-05-24 17:53:54 +02:00
|
|
|
sha256 = "1sw36w6zkzvabvjckqick032j5p5xi0qi3sgnh0znzxz31jqvf0d";
|
2012-09-14 00:06:25 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ makeWrapper python openldap pam ];
|
2012-09-14 00:06:25 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile.in --replace "install-data-local: " "# install-data-local: "
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-bindpw-file=/run/nslcd/bindpw"
|
|
|
|
"--with-nslcd-socket=/run/nslcd/socket"
|
|
|
|
"--with-nslcd-pidfile=/run/nslcd/nslcd.pid"
|
|
|
|
"--with-pam-seclib-dir=$(out)/lib/security"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
|
|
|
|
'';
|
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-09-14 00:06:25 +02:00
|
|
|
description = "LDAP identity and authentication for NSS/PAM";
|
|
|
|
homepage = http://arthurdejong.org/nss-pam-ldapd/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.lgpl21;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2012-09-14 00:06:25 +02:00
|
|
|
};
|
|
|
|
}
|