mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
866 B
Nix
37 lines
866 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 = {
|
|
description = "WeeChat script that sends highlight and message notifications through notify-send";
|
|
homepage = "https://github.com/s3rvac/weechat-notify-send";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ tobim ];
|
|
};
|
|
}
|