about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/key-mon
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/video/key-mon')
-rw-r--r--nixpkgs/pkgs/applications/video/key-mon/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/video/key-mon/default.nix b/nixpkgs/pkgs/applications/video/key-mon/default.nix
new file mode 100644
index 000000000000..7dc350da6475
--- /dev/null
+++ b/nixpkgs/pkgs/applications/video/key-mon/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, gnome2, librsvg, pythonPackages }:
+
+pythonPackages.buildPythonApplication rec {
+  pname = "key-mon";
+  version = "1.17";
+  namePrefix = "";
+
+  src = fetchurl {
+    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/key-mon/${pname}-${version}.tar.gz";
+    sha256 = "1liz0dxcqmchbnl1xhlxkqm3gh76wz9jxdxn9pa7dy77fnrjkl5q";
+  };
+
+  propagatedBuildInputs =
+    [ gnome2.python_rsvg librsvg pythonPackages.pygtk pythonPackages.xlib ];
+
+  doCheck = false;
+
+  preFixup = ''
+      export makeWrapperArgs="--set GDK_PIXBUF_MODULE_FILE $GDK_PIXBUF_MODULE_FILE"
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://code.google.com/archive/p/key-mon;
+    description = "Utility to show live keyboard and mouse status for teaching and screencasts";
+    license = licenses.asl20;
+    maintainers = [ maintainers.goibhniu ];
+  };
+}