commit
6df56e1cb8
|
@ -12,6 +12,7 @@ let
|
||||||
|
|
||||||
mkOpts = rule: concatStringsSep " " [
|
mkOpts = rule: concatStringsSep " " [
|
||||||
(optionalString rule.noPass "nopass")
|
(optionalString rule.noPass "nopass")
|
||||||
|
(optionalString rule.noLog "nolog")
|
||||||
(optionalString rule.persist "persist")
|
(optionalString rule.persist "persist")
|
||||||
(optionalString rule.keepEnv "keepenv")
|
(optionalString rule.keepEnv "keepenv")
|
||||||
"setenv { SSH_AUTH_SOCK ${concatStringsSep " " rule.setEnv} }"
|
"setenv { SSH_AUTH_SOCK ${concatStringsSep " " rule.setEnv} }"
|
||||||
|
@ -118,6 +119,16 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
noLog = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
If <code>true</code>, successful executions will not be logged
|
||||||
|
to
|
||||||
|
<citerefentry><refentrytitle>syslogd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
persist = mkOption {
|
persist = mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "doas";
|
pname = "doas";
|
||||||
version = "6.6.1";
|
version = "6.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Duncaen";
|
owner = "Duncaen";
|
||||||
repo = "OpenDoas";
|
repo = "OpenDoas";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "07kkc5729p654jrgfsc8zyhiwicgmq38yacmwfvay2b3gmy728zn";
|
sha256 = "1dlwnvy8r6slxcy260gfkximp1ms510wdslpfq9y6xvd2qi5izcb";
|
||||||
};
|
};
|
||||||
|
|
||||||
# otherwise confuses ./configure
|
# otherwise confuses ./configure
|
||||||
|
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/\(chown\|chmod\)/d' bsd.prog.mk
|
sed -i '/\(chown\|chmod\)/d' GNUmakefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ bison pam ];
|
buildInputs = [ bison pam ];
|
||||||
|
|
Loading…
Reference in New Issue