biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / nss-pam-ldapd / default.nix
blob0cdbd52f6f6a087b792ab12d705f47b1376f4227
1 { lib, stdenv, fetchurl
2 , pkg-config, makeWrapper, autoreconfHook
3 , openldap, python3, pam
4 }:
6 stdenv.mkDerivation rec {
7   pname = "nss-pam-ldapd";
8   version = "0.9.12";
10   src = fetchurl {
11     url = "https://arthurdejong.org/nss-pam-ldapd/${pname}-${version}.tar.gz";
12     sha256 = "sha256-xtZh50aTy/Uxp5BjHKk7c/KR+yPMOUZbCd642iv7DhQ=";
13   };
15   nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ];
16   buildInputs = [ openldap pam python3 ];
18   preConfigure = ''
19     substituteInPlace Makefile.in --replace "install-data-local: " "# install-data-local: "
20   '';
22   configureFlags = [
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"
28   ];
30   postInstall = ''
31     wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
32   '';
34   meta = with 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;
39   };