about summary refs log tree commit diff
path: root/pkgs/applications/misc/hamster-time-tracker
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2015-01-29 21:05:57 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-07-28 21:22:21 +0200
commita20470ee33723caa5984e6fe120a3587c81794ba (patch)
treeaca29c6b353915db0d231a95b2c269b7cdab4723 /pkgs/applications/misc/hamster-time-tracker
parent3715c2e08906192c2d515a7180a5206f5a6bf090 (diff)
downloadnixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar.gz
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar.bz2
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar.lz
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar.xz
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.tar.zst
nixlib-a20470ee33723caa5984e6fe120a3587c81794ba.zip
hamster-time-tracker: init at 1.04
https://projecthamster.wordpress.com/

Note that because it is invoked via dbus, you have to properly install
it and logout/login for the thing to work (you cannot run it directly
from the nix store).
Diffstat (limited to 'pkgs/applications/misc/hamster-time-tracker')
-rw-r--r--pkgs/applications/misc/hamster-time-tracker/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/misc/hamster-time-tracker/default.nix b/pkgs/applications/misc/hamster-time-tracker/default.nix
new file mode 100644
index 000000000000..3a94456e6cc7
--- /dev/null
+++ b/pkgs/applications/misc/hamster-time-tracker/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchzip, buildPythonPackage, docbook2x, libxslt, gnome_doc_utils
+, intltool, dbus_glib, pygobject, pygtk, pyxdg, gnome_python, dbus, sqlite3
+}:
+
+# TODO: Add optional dependency 'wnck', for "workspace tracking" support. Fixes
+# this message:
+#
+#   WARNING:root:Could not import wnck - workspace tracking will be disabled
+
+buildPythonPackage rec {
+  name = "hamster-time-tracker-1.04";
+  namePrefix = "";
+
+  src = fetchzip {
+    name = "${name}-src";
+    url = "https://github.com/projecthamster/hamster/archive/${name}.tar.gz";
+    sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
+  };
+
+  buildInputs = [ docbook2x libxslt gnome_doc_utils intltool dbus_glib ];
+
+  propagatedBuildInputs = [ pygobject pygtk pyxdg gnome_python dbus sqlite3 ];
+
+  configurePhase = ''
+    python waf configure --prefix="$out"
+  '';
+  
+  buildPhase = ''
+    python waf build
+  '';
+
+  installPhase = ''
+    python waf install
+  '';
+
+  # error: invalid command 'test'
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Time tracking application";
+    homepage = https://projecthamster.wordpress.com/;
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = [ maintainers.bjornfor ];
+  };
+}