1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/applications/misc/ptask/default.nix
2020-04-10 17:54:53 +01:00

31 lines
828 B
Nix

{ stdenv, fetchurl, pkgconfig, makeWrapper, gtk3, json_c, taskwarrior }:
stdenv.mkDerivation rec {
name = "ptask-1.0.0";
src = fetchurl {
url = "https://wpitchoune.net/ptask/files/${name}.tar.gz";
sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
};
buildInputs = [ gtk3 json_c ];
nativeBuildInputs = [ pkgconfig makeWrapper ];
patches = [ ./tw-version.patch ./json_c_is_error.patch ];
preFixup = ''
wrapProgram "$out/bin/ptask" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
--prefix PATH : "${taskwarrior}/bin"
'';
meta = with stdenv.lib; {
homepage = "http://wpitchoune.net/ptask/";
description = "GTK-based GUI for taskwarrior";
license = licenses.gpl2;
maintainers = [ maintainers.spacefrogg ];
platforms = platforms.linux;
};
}