1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00
nixpkgs/pkgs/applications/misc/ptask/default.nix

32 lines
853 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior }:
2017-02-21 22:24:55 +00:00
stdenv.mkDerivation rec {
pname = "ptask";
version = "1.0.0";
2017-02-21 22:24:55 +00:00
src = fetchurl {
url = "https://wpitchoune.net/ptask/files/ptask-${version}.tar.gz";
2017-02-21 22:24:55 +00:00
sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
};
buildInputs = [ gtk3 json_c ];
nativeBuildInputs = [ pkg-config makeWrapper ];
2017-02-21 22:24:55 +00: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"
'';
meta = with lib; {
homepage = "http://wpitchoune.net/ptask/";
2017-02-21 22:24:55 +00:00
description = "GTK-based GUI for taskwarrior";
license = licenses.gpl2;
maintainers = [ maintainers.spacefrogg ];
platforms = platforms.linux;
2017-02-21 22:24:55 +00:00
};
}