Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 44 lines 1.1 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchurl 4, pkgs 5, python 6, pygobject3 7}: 8 9buildPythonPackage rec { 10 pname = "gtimelog"; 11 version = "0.9.1"; 12 13 src = pkgs.fetchurl { 14 url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz"; 15 sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj"; 16 }; 17 18 buildInputs = [ pkgs.glibcLocales ]; 19 20 LC_ALL="en_US.UTF-8"; 21 22 # TODO: AppIndicator 23 propagatedBuildInputs = [ pkgs.gobject-introspection pygobject3 pkgs.makeWrapper pkgs.gtk3 ]; 24 25 checkPhase = '' 26 substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}" 27 ./runtests 28 ''; 29 30 preFixup = '' 31 wrapProgram $out/bin/gtimelog \ 32 --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ 33 --prefix LD_LIBRARY_PATH ":" "${pkgs.gtk3.out}/lib" \ 34 ''; 35 36 meta = with stdenv.lib; { 37 description = "A small Gtk+ app for keeping track of your time. It's main goal is to be as unintrusive as possible"; 38 homepage = https://mg.pov.lt/gtimelog/; 39 license = licenses.gpl2Plus; 40 maintainers = with maintainers; [ ocharles ]; 41 platforms = platforms.unix; 42 }; 43 44}