Merge pull request #94040 from KAction/doas-nopam

doas: add enablePAM option
This commit is contained in:
Samuel Dionne-Riel 2020-10-14 20:08:36 -04:00 committed by GitHub
commit f3e4fc9491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
, bison
, pam
, withPAM ? true
, withTimestamp ? true
}:
@ -23,6 +24,7 @@ stdenv.mkDerivation rec {
configureFlags = [
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
(lib.optionalString (!withPAM) "--without-pam")
"--pamdir=${placeholder "out"}/etc/pam.d"
];