Merge pull request #88028 from cole-h/doas
doas: enable timestamp by default and set pamdir
This commit is contained in:
commit
a78d9d6829
@ -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
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user