
It would be great to be able to test PAM service modules on Darwin systems. This commit enables pamtester on Darwin. I think the only reason this wasn't already enabled is purely historical. There is a viable PAM package for Darwin, namely OpenPAM and the upstream docs for pamtester mention Darwin. Building on my nix-darwin system works and the binary works as expected. Signed-off-by: squat <lserven@gmail.com>
31 lines
651 B
Nix
31 lines
651 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
autoreconfHook,
|
|
fetchurl,
|
|
pam,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pamtester";
|
|
version = "0.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pamtester/pamtester-${version}.tar.gz";
|
|
sha256 = "1mdj1wj0adcnx354fs17928yn2xfr1hj5mfraq282dagi873sqw3";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ pam ];
|
|
|
|
meta = with lib; {
|
|
description = "Utility program to test the PAM facility";
|
|
mainProgram = "pamtester";
|
|
homepage = "https://pamtester.sourceforge.net/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|