Compare commits
No commits in common. "a0dde6f27437c8e52c4f72187d8d3899cd90e30f" and "08f31c088ba2b2682210a1e2de4aa7f412858fc8" have entirely different histories.
a0dde6f274
...
08f31c088b
2 changed files with 6 additions and 34 deletions
|
|
@ -19,27 +19,6 @@ in
|
|||
notify = {
|
||||
enable = mkEnableOption "zsh-done notification";
|
||||
|
||||
exclude = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [
|
||||
"direnv reload"
|
||||
"fg"
|
||||
"git (?!push|pull|fetch)"
|
||||
"htop"
|
||||
"less"
|
||||
"man"
|
||||
"nvim"
|
||||
"tail -f"
|
||||
"tmux"
|
||||
"vim"
|
||||
];
|
||||
example = [ "command --long-running-option" ];
|
||||
description = ''
|
||||
List of exclusions which should not be create a notification. Accepts
|
||||
Perl regexes (implicitly anchored with `^\s*`).
|
||||
'';
|
||||
};
|
||||
|
||||
ssh = {
|
||||
enable = mkEnableOption "notify through SSH/non-graphical connections";
|
||||
|
||||
|
|
@ -137,17 +116,10 @@ in
|
|||
|
||||
# `localVariables` values don't get merged correctly due to their type,
|
||||
# don't use `mkIf`
|
||||
localVariables = {
|
||||
DONE_EXCLUDE =
|
||||
let
|
||||
joined = lib.concatMapStringsSep "|" (c: "(${c})") cfg.notify.exclude;
|
||||
in
|
||||
''^\s*(${joined})'';
|
||||
}
|
||||
# Enable `zsh-done` through SSH, if configured
|
||||
// lib.optionalAttrs cfg.notify.ssh.enable {
|
||||
DONE_ALLOW_NONGRAPHICAL = 1;
|
||||
};
|
||||
localVariables = { }
|
||||
# Enable `zsh-done` through SSH, if configured
|
||||
// lib.optionalAttrs cfg.notify.ssh.enable { DONE_ALLOW_NONGRAPHICAL = 1; }
|
||||
;
|
||||
|
||||
# Use OSC-777 to send the notification through SSH
|
||||
initExtra = lib.mkIf cfg.notify.ssh.useOsc777 ''
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "zsh-done";
|
||||
version = "0.1.1";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ambroisie";
|
||||
repo = "zsh-done";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dyhPhoMrAfDWtrBX5TA+B3G7QZ7gBhoDGNOEqGsCBQU=";
|
||||
hash = "sha256-DC7urJDXPP9vBYABrJF5KZ4HfMbrpHIVogSmEB8PWLA=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue