Merge pull request #88028 from cole-h/doas

doas: enable timestamp by default and set pamdir
This commit is contained in:
adisbladis 2020-05-17 21:27:40 +02:00 committed by GitHub
commit a78d9d6829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,8 @@
, fetchFromGitHub
, bison
, pam
, withTimestamp ? true
}:
stdenv.mkDerivation rec {
@ -19,6 +21,11 @@ stdenv.mkDerivation rec {
# otherwise confuses ./configure
dontDisableStatic = true;
configureFlags = [
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
"--pamdir=${placeholder "out"}/etc/pam.d"
];
postPatch = ''
sed -i '/\(chown\|chmod\)/d' bsd.prog.mk
'';