diff options
author | Profpatsch <mail@profpatsch.de> | 2018-03-28 07:33:39 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2018-05-01 21:28:02 +0200 |
commit | 2a22d5c54f923ece8247dd4095afeea3ed7cf7d4 (patch) | |
tree | 210c256917afd62664975843f9d3f5a279ce089f /machines/profpatsch/pkgs.nix | |
parent | 815211add6078eb2f223e07a4efbd89880ddcb9e (diff) |
machines/katara: add user services for pyrnotify
Diffstat (limited to 'machines/profpatsch/pkgs.nix')
-rw-r--r-- | machines/profpatsch/pkgs.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix index 9cff23fa..7fd1db01 100644 --- a/machines/profpatsch/pkgs.nix +++ b/machines/profpatsch/pkgs.nix @@ -88,6 +88,22 @@ let # buildDepends = with haskellPackages; [ hnix ansi-wl-pprint protolude data-fix ]; # }; + pyrnotify = + let src = pkgs.fetchFromGitHub { + owner = "arnottcr"; + repo = "weechat-pyrnotify"; + rev = "5063ba19b5ba7ba3d4ecb2a76ad9e4b7bf89964b"; + sha256 = "0r07glz7hkmcnp2vl4dy24i9vfsa9shm7k4q0jb47881z0y2dm2p"; + }; + notify-send = "${pkgs.libnotify.overrideAttrs (old: { + patches = old.patches or [] ++ [ ./patches/libnotify.patch ]; + })}/bin/notify-send"; + in pkgs.runCommand "pyrnotify.py" {} '' + substitute "${src}/pyrnotify.py" $out \ + --replace 'notify-send' '${notify-send}' + ''; + + in { inherit taffybar @@ -99,5 +115,7 @@ in xmpp-client saneGhci /*nix-gen*/ - /*searx*/; + /*searx*/ + pyrnotify + ; } |