2018-12-21 09:22:20 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, pkgconfig, makeWrapper, autoreconfHook
|
|
|
|
, openldap, python, pam
|
|
|
|
}:
|
2012-09-13 23:06:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nss-pam-ldapd-${version}";
|
2018-09-28 20:09:53 +01:00
|
|
|
version = "0.9.10";
|
2018-12-21 09:22:20 +00:00
|
|
|
|
2012-09-13 23:06:25 +01:00
|
|
|
src = fetchurl {
|
2018-01-05 19:42:46 +00:00
|
|
|
url = "https://arthurdejong.org/nss-pam-ldapd/${name}.tar.gz";
|
2018-09-28 20:09:53 +01:00
|
|
|
sha256 = "1cqamcr6qpgwxijlr6kg7jspjamjra8w0haan0qssn0yxn95d7c0";
|
2012-09-13 23:06:25 +01:00
|
|
|
};
|
2018-12-21 09:22:20 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
|
|
|
|
buildInputs = [ openldap pam python ];
|
2012-09-13 23:06:25 +01: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"
|
2018-12-21 09:22:20 +00:00
|
|
|
"--enable-kerberos=no"
|
2012-09-13 23:06:25 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
|
|
|
|
'';
|
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-09-13 23:06:25 +01:00
|
|
|
description = "LDAP identity and authentication for NSS/PAM";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://arthurdejong.org/nss-pam-ldapd/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.lgpl21;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2012-09-13 23:06:25 +01:00
|
|
|
};
|
|
|
|
}
|