git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #45051 from typetetris/45049

ptask: remove usage of nonexistent function is_error

commit8238101f6773078ee28f4a5b146cd9d52b6b8758 authorxeji <36407913+xeji@users.noreply.github.com> dateWed 15 Aug 2018, 12:41 (8 years ago) parentad71d9bff9a38e
2 files changed+15−1
pkgs/applications/misc/ptask/default.nix+2−1 pkgs/applications/misc/ptask/json_c_is_error.patch+13
pkgs/applications/misc/ptask/default.nix+2−1
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212
1313 nativeBuildInputs = [ pkgconfig makeWrapper ];
1414
15− patches = [ ./tw-version.patch ];
15+ patches = [ ./tw-version.patch ./json_c_is_error.patch ];
1616
1717 preFixup = ''
1818 wrapProgram "$out/bin/ptask" \
@@ -25,5 +25,6 @@ stdenv.mkDerivation rec {
2525 description = "GTK-based GUI for taskwarrior";
2626 license = licenses.gpl2;
2727 maintainers = [ maintainers.spacefrogg ];
28+ platforms = platforms.linux;
2829 };
2930}
pkgs/applications/misc/ptask/json_c_is_error.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/src/tw.c b/src/tw.c
2+index 602f7b3..ca601cd 100644
3+--- a/src/tw.c
4++++ b/src/tw.c
5+@@ -163,7 +163,7 @@ static struct json_object *task_exec_json(const char *opts)
6+
7+ free(cmd);
8+
9+- if (o && is_error(o))
10++ if (!o)
11+ return NULL;
12+
13+ return o;