1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/nss-pam-ldapd/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, openldap, python, pam, makeWrapper }:
stdenv.mkDerivation rec {
name = "nss-pam-ldapd-${version}";
2017-05-24 16:53:54 +01:00
version = "0.9.7";
src = fetchurl {
url = "https://arthurdejong.org/nss-pam-ldapd/${name}.tar.gz";
2017-05-24 16:53:54 +01:00
sha256 = "1sw36w6zkzvabvjckqick032j5p5xi0qi3sgnh0znzxz31jqvf0d";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ makeWrapper python openldap pam ];
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
'';
meta = with stdenv.lib; {
description = "LDAP identity and authentication for NSS/PAM";
homepage = https://arthurdejong.org/nss-pam-ldapd/;
license = licenses.lgpl21;
platforms = platforms.linux;
};
}