nixpkgs/pkgs/tools/networking/nss-pam-ldapd/default.nix
R. RyanTM e799f39632 nss_pam_ldapd: 0.9.7 -> 0.9.10 (#46226)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
nss-pam-ldapd
2018-09-28 21:09:53 +02:00

36 lines
1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, openldap, python, pam, makeWrapper }:
stdenv.mkDerivation rec {
name = "nss-pam-ldapd-${version}";
version = "0.9.10";
src = fetchurl {
url = "https://arthurdejong.org/nss-pam-ldapd/${name}.tar.gz";
sha256 = "1cqamcr6qpgwxijlr6kg7jspjamjra8w0haan0qssn0yxn95d7c0";
};
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;
};
}