Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
868 B
Nix
37 lines
868 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libnotify,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "weechat-notify-send";
|
|
version = "0.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "s3rvac";
|
|
repo = "weechat-notify-send";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-7uw0IdRSxhPrLqdgECKB9eOrtFj+2HTILBhakKiRuNQ=";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "WeeChat script that sends highlight and message notifications through notify-send";
|
|
homepage = "https://github.com/s3rvac/weechat-notify-send";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tobim ];
|
|
};
|
|
}
|