cjson: fix building with clang

This commit is contained in:
Tristan Ross
2025-01-19 18:52:18 -08:00
parent fa4acf2cd5
commit 3cef4905f0
+4
View File
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = lib.optional (stdenv.cc.isClang && !stdenv.hostPlatform.isDarwin) (
lib.cmakeBool "ENABLE_CUSTOM_COMPILER_FLAGS" false
);
# cJSON actually uses C99 standard, not C89
# https://github.com/DaveGamble/cJSON/issues/275
postPatch = ''