1 { lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior2 }:
3 stdenv.mkDerivation rec {
8 url = "https://wpitchoune.net/ptask/files/ptask-${version}.tar.gz";
9 sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
12 buildInputs = [ gtk3 json_c ];
14 nativeBuildInputs = [ pkg-config makeWrapper ];
16 patches = [ ./tw-version.patch ./json_c_is_error.patch ];
19 wrapProgram "$out/bin/ptask" \
20 --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
21 --prefix PATH : "${taskwarrior2}/bin"
25 homepage = "http://wpitchoune.net/ptask/";
26 description = "GTK-based GUI for taskwarrior";
27 mainProgram = "ptask";
28 license = licenses.gpl2;
29 maintainers = [ maintainers.spacefrogg ];
30 platforms = platforms.linux;