Merge pull request #94040 from KAction/doas-nopam
doas: add enablePAM option
This commit is contained in:
commit
f3e4fc9491
@ -4,6 +4,7 @@
|
|||||||
, bison
|
, bison
|
||||||
, pam
|
, pam
|
||||||
|
|
||||||
|
, withPAM ? true
|
||||||
, withTimestamp ? true
|
, withTimestamp ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
|
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
|
||||||
|
(lib.optionalString (!withPAM) "--without-pam")
|
||||||
"--pamdir=${placeholder "out"}/etc/pam.d"
|
"--pamdir=${placeholder "out"}/etc/pam.d"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user