From 73877a6f3459d2ff756074a470dae38a782442d5 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Tue, 5 Dec 2023 14:06:52 +0100 Subject: [PATCH] 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: *** [: jshon.o] Error 1 ``` Signed-off-by: Roman Volosatovs --- pkgs/development/tools/parsing/jshon/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/parsing/jshon/default.nix b/pkgs/development/tools/parsing/jshon/default.nix index 04a1a637207d..977c4bb398c2 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