Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libnotify, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "weechat-notify-send"; 10 version = "0.10"; 11 12 src = fetchFromGitHub { 13 owner = "s3rvac"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-7uw0IdRSxhPrLqdgECKB9eOrtFj+2HTILBhakKiRuNQ="; 17 }; 18 19 passthru.scripts = [ "notify_send.py" ]; 20 21 dontBuild = true; 22 doCheck = false; 23 24 installPhase = '' 25 install -D notify_send.py $out/share/notify_send.py 26 substituteInPlace $out/share/notify_send.py \ 27 --replace "'notify-send'" "'${libnotify}/bin/notify-send'" 28 ''; 29 30 meta = with lib; { 31 description = "WeeChat script that sends highlight and message notifications through notify-send"; 32 homepage = "https://github.com/s3rvac/weechat-notify-send"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ tobim ]; 35 }; 36}