2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior }:
|
2017-02-21 22:24:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ptask-1.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://wpitchoune.net/ptask/files/${name}.tar.gz";
|
2017-02-21 22:24:55 +00:00
|
|
|
sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 json_c ];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
2017-02-21 22:24:55 +00:00
|
|
|
|
2018-08-15 07:00:55 +01:00
|
|
|
patches = [ ./tw-version.patch ./json_c_is_error.patch ];
|
2017-02-21 22:24:55 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/ptask" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--prefix PATH : "${taskwarrior}/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://wpitchoune.net/ptask/";
|
2017-02-21 22:24:55 +00:00
|
|
|
description = "GTK-based GUI for taskwarrior";
|
|
|
|
license = licenses.gpl2;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = [ maintainers.spacefrogg ];
|
2018-08-15 11:00:43 +01:00
|
|
|
platforms = platforms.linux;
|
2017-02-21 22:24:55 +00:00
|
|
|
};
|
|
|
|
}
|