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

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
'';