diff options
author | aszlig <aszlig@redmoonstudios.org> | 2013-02-04 03:27:47 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2013-02-07 06:43:51 +0100 |
commit | 289f4f39d95689e76eb23b24d0ce0d5e3a4cc6b8 (patch) | |
tree | 01b343939999e203894d5cb72c2582b4194b3a0a | |
parent | 37686b377dd612ec1f36a4c39e1b1a045d243d4b (diff) |
overrides: Add tkabber urgent plugin.
This is particularily useful sometimes to activate if you actually _want_ to be interrupted in your work flow. It is within the Tkabber 3rd party plugins repository. So maybe we want to package the plugin repository in upstream nixpkgs? Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | collections/aszlig.nix | 1 | ||||
-rw-r--r-- | overrides/default.nix | 1 | ||||
-rw-r--r-- | overrides/tkabber-urgent-plugin/default.nix | 26 |
3 files changed, 28 insertions, 0 deletions
diff --git a/collections/aszlig.nix b/collections/aszlig.nix index f5aebd5a..2e596d68 100644 --- a/collections/aszlig.nix +++ b/collections/aszlig.nix @@ -67,6 +67,7 @@ with pkgs; i3 i3lock i3status dmenu conky tkabber tkabber_plugins + tkabber_urgent_plugin xpdf ]; diff --git a/overrides/default.nix b/overrides/default.nix index 902f5a69..70c943ea 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -50,6 +50,7 @@ let libCMT = callPackage ./libcmt { }; librxtx_java = callPackage ./librxtx-java { }; pvolctrl = callPackage ./pvolctrl { }; + tkabber_urgent_plugin = callPackage ./tkabber-urgent-plugin { }; }; # misc diff --git a/overrides/tkabber-urgent-plugin/default.nix b/overrides/tkabber-urgent-plugin/default.nix new file mode 100644 index 00000000..b39e5ea8 --- /dev/null +++ b/overrides/tkabber-urgent-plugin/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchsvn, xlibs }: + +stdenv.mkDerivation { + name = "tkabber-urgent-plugin"; + + src = fetchsvn { + url = "http://svn.xmpp.ru/repos/tkabber-3rd-party/trunk/plugins/urgent"; + rev = 528; + sha256 = "1qr7i0559ad5y1l5h2gp8aix4nsfgm0bx7jqb030hgbxaw1xnbp5"; + }; + + buildInputs = [ xlibs.libX11 ]; + + patchPhase = '' + sed -i -e 's|exec xwininfo|exec ${xlibs.xwininfo}/bin/xwininfo|' urgent.tcl + ''; + + buildPhase = '' + gcc -lX11 -o urgent urgent.c + ''; + + installPhase = '' + install -vd "$out/share/tkabber-plugins/urgent" + cp -vpt "$out/share/tkabber-plugins/urgent" urgent urgent.tcl + ''; +} |