mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
gtimelog: 0.8.1 -> 0.9.1, switch to gi
This commit is contained in:
parent
0a1d52711b
commit
3bf6383d6b
@ -2189,19 +2189,34 @@ rec {
|
||||
|
||||
gtimelog = buildPythonPackage rec {
|
||||
name = "gtimelog-${version}";
|
||||
version = "0.8.1";
|
||||
version = "0.9.1";
|
||||
|
||||
disabled = isPy26;
|
||||
|
||||
src = fetchurl {
|
||||
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 = ''
|
||||
patchShebangs ./runtests
|
||||
substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
|
||||
./runtests
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/gtimelog \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
--prefix LD_LIBRARY_PATH ":" "${pkgs.gtk3}/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";
|
||||
|
Loading…
Reference in New Issue
Block a user