1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

ptask: init at 1.0.0

This commit is contained in:
Michael Raitza 2017-02-21 23:24:55 +01:00
parent fd732dec88
commit ea27b15d0e
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, pkgconfig, makeWrapper, gtk3, json_c, taskwarrior }:
stdenv.mkDerivation rec {
name = "ptask-1.0.0";
src = fetchurl {
url = "http://wpitchoune.net/ptask/files/${name}.tar.gz";
sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
};
buildInputs = [ gtk3 json_c ];
nativeBuildInputs = [ pkgconfig makeWrapper ];
patches = [ ./tw-version.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;
maintainer = [ maintainers.spacefrogg ];
};
}

View file

@ -0,0 +1,11 @@
--- a/src/tw.c 2017-02-21 22:56:19.289037608 +0100
+++ b/src/tw.c 2017-02-21 22:57:04.726814256 +0100
@@ -116,7 +116,7 @@
|| !strcmp(ver, "2.3.0")
|| !strcmp(ver, "2.4.0")
|| !strcmp(ver, "2.4.1")
- || !strcmp(ver, "2.5.0"))
+ || !strcmp(ver, "2.5.1"))
return 1;
else
return 0;

View file

@ -14769,6 +14769,8 @@ with pkgs;
pstree = callPackage ../applications/misc/pstree { };
ptask = callPackage ../applications/misc/ptask { };
pulseview = callPackage ../applications/science/electronics/pulseview { };
puredata = callPackage ../applications/audio/puredata { };