summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorCillian de Róiste <goibhniu@fsfe.org>2012-11-11 18:13:04 +0100
committerCillian de Róiste <goibhniu@fsfe.org>2012-11-11 18:13:04 +0100
commit27f3a417540c368eee9fcfbb35233897b255acc3 (patch)
tree35d98e000dde0e72b7ea2dbbaca59f1ea75f019d /pkgs/applications/video
parentd900c8630240ceb80b225939f8b750cd3bc2276b (diff)
downloadnixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar.gz
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar.bz2
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar.lz
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar.xz
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.tar.zst
nixlib-27f3a417540c368eee9fcfbb35233897b255acc3.zip
Add key-mon
a utility to show live keyboard and mouse status for teaching and screencasts
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/key-mon/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/video/key-mon/default.nix b/pkgs/applications/video/key-mon/default.nix
new file mode 100644
index 000000000000..7d0256ae455d
--- /dev/null
+++ b/pkgs/applications/video/key-mon/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, buildPythonPackage, gnome, librsvg, makeWrapper, pygtk
+, pythonPackages }:
+
+buildPythonPackage rec {
+  name = "key-mon-${version}";
+  version = "1.13";
+  namePrefix = "";
+
+  src = fetchurl {
+    url = "http://key-mon.googlecode.com/files/${name}.tar.gz";
+    sha256 = "02h7lcnyqwyqsycd1vlvl11ms81v0zmr9p0pfyl5gmzry9dj7imj";
+  };
+
+  propagatedBuildInputs =
+    [ gnome.python_rsvg librsvg makeWrapper pygtk pythonPackages.xlib ];
+
+  doCheck = false;
+
+  postInstall = ''
+      wrapProgram $out/bin/key-mon --prefix GDK_PIXBUF_MODULE_FILE : \
+      ${librsvg}/lib/gdk-pixbuf/loaders.cache
+    '';
+
+  meta = with stdenv.lib; {
+    homepage = http://code.google.com/p/key-mon;
+    description = "Utility to show live keyboard and mouse status for teaching and screencasts";
+    license = licenses.asl20;
+    maintainers = [ maintainers.goibhniu ];
+  };
+}