nixpkgs/pkgs/tools/networking/nss-pam-ldapd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
2021-01-17 06:51:22 +03:00
, pkg-config, makeWrapper, autoreconfHook
2022-04-26 16:34:31 +03:00
, openldap, python3, pam
}:
stdenv.mkDerivation rec {
pname = "nss-pam-ldapd";
version = "0.9.12";
src = fetchurl {
url = "https://arthurdejong.org/nss-pam-ldapd/${pname}-${version}.tar.gz";
sha256 = "sha256-xtZh50aTy/Uxp5BjHKk7c/KR+yPMOUZbCd642iv7DhQ=";
};
2021-01-17 06:51:22 +03:00
nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ];
2022-04-26 16:34:31 +03:00
buildInputs = [ openldap pam python3 ];
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"
"--enable-kerberos=no"
];
postInstall = ''
wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
'';
meta = with lib; {
description = "LDAP identity and authentication for NSS/PAM";
homepage = "https://arthurdejong.org/nss-pam-ldapd/";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}