From ea27b15d0e84e976feb99323a9031702290d9173 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Tue, 21 Feb 2017 23:24:55 +0100 Subject: [PATCH] ptask: init at 1.0.0 --- pkgs/applications/misc/ptask/default.nix | 29 +++++++++++++++++++ pkgs/applications/misc/ptask/tw-version.patch | 11 +++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 pkgs/applications/misc/ptask/default.nix create mode 100644 pkgs/applications/misc/ptask/tw-version.patch diff --git a/pkgs/applications/misc/ptask/default.nix b/pkgs/applications/misc/ptask/default.nix new file mode 100644 index 000000000000..abb1fb596fac --- /dev/null +++ b/pkgs/applications/misc/ptask/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/applications/misc/ptask/tw-version.patch b/pkgs/applications/misc/ptask/tw-version.patch new file mode 100644 index 000000000000..995fffeda2f8 --- /dev/null +++ b/pkgs/applications/misc/ptask/tw-version.patch @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 28b8de1178cf..2cbe487e669c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };