ptask: remove usage of nonexistent function is_error
see https://github.com/json-c/json-c/issues/304
commitb2cf9529d641ddd4a3e7dc210f87d68b4653dfd2
authorEric Wolf <ericwolf42@gmail.com>
dateWed 15 Aug 2018, 08:00 (8 years ago)
parent44a4370
pkgs/applications/misc/ptask/default.nix+1−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" \
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;