gtimelog: 0.8.1 -> 0.9.1, switch to gi

This commit is contained in:
Domen Kožar 2014-08-26 14:41:32 +02:00
parent 0a1d52711b
commit 3bf6383d6b

View File

@ -2189,19 +2189,34 @@ rec {
gtimelog = buildPythonPackage rec { gtimelog = buildPythonPackage rec {
name = "gtimelog-${version}"; name = "gtimelog-${version}";
version = "0.8.1"; version = "0.9.1";
disabled = isPy26;
src = fetchurl { src = fetchurl {
url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz"; url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
sha256 = "0nwpfv284b26q97mfpagqkqb4n2ilw46cx777qsyi3plnywk1xa0"; sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
}; };
preBuild = ''
export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
export LC_ALL="en_US.UTF-8"
'';
propagatedBuildInputs = [ pygtk ]; # TODO: AppIndicator
propagatedBuildInputs = [ pkgs.gobjectIntrospection pygobject3 pkgs.makeWrapper pkgs.gtk3 ];
checkPhase = '' checkPhase = ''
patchShebangs ./runtests substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
./runtests ./runtests
''; '';
preFixup = ''
wrapProgram $out/bin/gtimelog \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--prefix LD_LIBRARY_PATH ":" "${pkgs.gtk3}/lib" \
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A small Gtk+ app for keeping track of your time. It's main goal is to be as unintrusive as possible"; description = "A small Gtk+ app for keeping track of your time. It's main goal is to be as unintrusive as possible";