1 { lib, stdenv, fetchurl
2 , pkg-config, makeWrapper, autoreconfHook
3 , openldap, python3, pam
6 stdenv.mkDerivation rec {
7 pname = "nss-pam-ldapd";
11 url = "https://arthurdejong.org/nss-pam-ldapd/${pname}-${version}.tar.gz";
12 sha256 = "sha256-xtZh50aTy/Uxp5BjHKk7c/KR+yPMOUZbCd642iv7DhQ=";
15 nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ];
16 buildInputs = [ openldap pam python3 ];
19 substituteInPlace Makefile.in --replace "install-data-local: " "# install-data-local: "
23 "--with-bindpw-file=/run/nslcd/bindpw"
24 "--with-nslcd-socket=/run/nslcd/socket"
25 "--with-nslcd-pidfile=/run/nslcd/nslcd.pid"
26 "--with-pam-seclib-dir=$(out)/lib/security"
27 "--enable-kerberos=no"
31 wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
35 description = "LDAP identity and authentication for NSS/PAM";
36 homepage = "https://arthurdejong.org/nss-pam-ldapd/";
37 license = licenses.lgpl21Plus;
38 platforms = platforms.linux;