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).
This commit is contained in:
parent
3715c2e089
commit
a20470ee33
46
pkgs/applications/misc/hamster-time-tracker/default.nix
Normal file
46
pkgs/applications/misc/hamster-time-tracker/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -11624,6 +11624,11 @@ let
|
||||
|
||||
hackrf = callPackage ../applications/misc/hackrf { };
|
||||
|
||||
hamster-time-tracker = callPackage ../applications/misc/hamster-time-tracker {
|
||||
inherit (pythonPackages) pyxdg pygtk dbus sqlite3;
|
||||
inherit (gnome) gnome_python;
|
||||
};
|
||||
|
||||
hello = callPackage ../applications/misc/hello/ex-2 { };
|
||||
|
||||
helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { };
|
||||
|
Loading…
Reference in New Issue
Block a user