diff options
author | Tobias Mayer <tobim@fastmail.fm> | 2020-03-17 16:05:41 +0100 |
---|---|---|
committer | Tobias Mayer <tobim@fastmail.fm> | 2020-08-16 21:11:55 +0200 |
commit | db2a2cb01aff0c0cc06cd78f7e25eb732b630d66 (patch) | |
tree | 05ccaff42d7debca821297c4d78c0d70dca3c359 /pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send | |
parent | a2e06fc3423c4be53181b15c28dfbe0bcf67dd73 (diff) |
weechat-notify-send: init at 0.9
Diffstat (limited to 'pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send')
-rw-r--r-- | pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
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 0000000000000..d219aa481cdb8 --- /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 ]; + }; +} |