Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pam,
|
|
openldap,
|
|
perl,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pam_ldap";
|
|
version = "0-unstable-2024-02-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PADL";
|
|
repo = "pam_ldap";
|
|
rev = "656448f091cbeb9efb3ece08e6868e40b8e7b6f8";
|
|
hash = "sha256-o2RBewxhaXcMW9KIRwlxFv6YaWxaBngafvjEYxFchX4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs ./vers_string
|
|
substituteInPlace vers_string --replace "cvslib.pl" "./cvslib.pl"
|
|
'';
|
|
|
|
preInstall = "
|
|
substituteInPlace Makefile --replace '-o root -g root' ''
|
|
";
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
buildInputs = [
|
|
pam
|
|
openldap
|
|
];
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
homepage = "https://www.padl.com/OSS/pam_ldap.html";
|
|
description = "LDAP backend for PAM";
|
|
changelog = "https://github.com/PADL/pam_ldap/blob/master/ChangeLog";
|
|
longDescription = ''
|
|
The pam_ldap module provides the means for Solaris and Linux servers and
|
|
workstations to authenticate against LDAP directories, and to change their
|
|
passwords in the directory.'';
|
|
license = lib.licenses.gpl2;
|
|
inherit (pam.meta) platforms;
|
|
};
|
|
})
|