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