about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoman Volosatovs <rvolosatovs@riseup.net>2023-12-05 14:06:52 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-10 01:07:57 +0100
commit73877a6f3459d2ff756074a470dae38a782442d5 (patch)
tree37e376614e0ed7e349b4899fce3f0930e666e253
parent8409e43c22154edd0fee362ba24dc3de0be7b4b1 (diff)
jshon: fix build on aarch64-darwin
```
jshon> clang -std=c99 -Wall -pedantic -Wextra -Werror    -c -o jshon.o jshon.c
jshon> jshon.c:189:25: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
jshon> json_t** stack_safe_peek()
jshon>                         ^
jshon>                          void
jshon> 6 errors generated.
jshon> make: *** [<builtin>: jshon.o] Error 1
```

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
-rw-r--r--pkgs/development/tools/parsing/jshon/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/jshon/default.nix b/pkgs/development/tools/parsing/jshon/default.nix
index 04a1a637207d2..977c4bb398c2d 100644
--- a/pkgs/development/tools/parsing/jshon/default.nix
+++ b/pkgs/development/tools/parsing/jshon/default.nix
@@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ jansson ];
 
+  env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-prototypes";
+
   patches = [
     (fetchpatch {
       # https://github.com/keenerd/jshon/pull/62