diff options
author | Lassulus <github@lassul.us> | 2020-08-24 13:16:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 13:16:35 +0200 |
commit | c79d88f17872130eadfdaedbf09e3822c8a6dd5f (patch) | |
tree | 0622993d2fead963d0816f3b9435f1ed35df0b3f /pkgs/applications/networking | |
parent | f80d61718c107c48acfcfe3c79d919507808c3c9 (diff) | |
parent | db2a2cb01aff0c0cc06cd78f7e25eb732b630d66 (diff) | |
download | nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar.gz nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar.bz2 nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar.lz nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar.xz nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.tar.zst nixpkgs-c79d88f17872130eadfdaedbf09e3822c8a6dd5f.zip |
Merge pull request #82814 from tobim/init/weechat-notify-send
weechat-notify-send: init at 0.9
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/irc/weechat/scripts/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/networking/irc/weechat/scripts/default.nix b/pkgs/applications/networking/irc/weechat/scripts/default.nix index 0880a32af92..6d228688607 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/default.nix @@ -7,6 +7,8 @@ weechat-matrix = python3Packages.callPackage ./weechat-matrix { }; + weechat-notify-send = python3Packages.callPackage ./weechat-notify-send { }; + wee-slack = callPackage ./wee-slack { }; weechat-autosort = callPackage ./weechat-autosort { }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix new file mode 100644 index 00000000000..d219aa481cd --- /dev/null +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, libnotify }: + +stdenv.mkDerivation rec { + pname = "weechat-notify-send"; + version = "0.9"; + + src = fetchFromGitHub { + owner = "s3rvac"; + repo = pname; + rev = "v${version}"; + sha256 = "1693b7axm9ls5p7hm6kq6avddsisi491khr5irvswr5lpizvys6a"; + }; + + passthru.scripts = [ "notify_send.py" ]; + + dontBuild = true; + doCheck = false; + + installPhase = '' + install -D notify_send.py $out/share/notify_send.py + substituteInPlace $out/share/notify_send.py \ + --replace "'notify-send'" "'${libnotify}/bin/notify-send'" + ''; + + meta = with stdenv.lib; { + description = "A WeeChat script that sends highlight and message notifications through notify-send"; + homepage = "https://github.com/s3rvac/weechat-notify-srnd"; + license = licenses.mit; + maintainers = with maintainers; [ tobim ]; + }; +} |