mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #305386 from tbleiker/znapzend
znapzend: add --mailErrorSummaryTo
This commit is contained in:
commit
9ee8e1eff0
@ -315,6 +315,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mailErrorSummaryTo = mkOption {
|
||||||
|
type = singleLineStr;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Email address to send a summary to if "send task(s) failed".
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
noDestroy = mkOption {
|
noDestroy = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -455,6 +463,8 @@ in
|
|||||||
"--loglevel=${cfg.logLevel}"
|
"--loglevel=${cfg.logLevel}"
|
||||||
(optionalString cfg.noDestroy "--nodestroy")
|
(optionalString cfg.noDestroy "--nodestroy")
|
||||||
(optionalString cfg.autoCreation "--autoCreation")
|
(optionalString cfg.autoCreation "--autoCreation")
|
||||||
|
(optionalString (cfg.mailErrorSummaryTo != "")
|
||||||
|
"--mailErrorSummaryTo=${cfg.mailErrorSummaryTo}")
|
||||||
(optionalString (enabledFeatures != [])
|
(optionalString (enabledFeatures != [])
|
||||||
"--features=${concatStringsSep "," enabledFeatures}")
|
"--features=${concatStringsSep "," enabledFeatures}")
|
||||||
]; in "${pkgs.znapzend}/bin/znapzend ${args}";
|
]; in "${pkgs.znapzend}/bin/znapzend ${args}";
|
||||||
|
Loading…
Reference in New Issue
Block a user