cjson: fix build on darwin

master
Pavol Rusnak 2021-02-01 19:13:25 +01:00
parent a4f4d86e92
commit 61aa366d56
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
# cJSON actually uses C99 standard, not C89
# https://github.com/DaveGamble/cJSON/issues/275
postPatch = ''
substituteInPlace CMakeLists.txt --replace -std=c89 -std=c99
'';
meta = with lib; {
homepage = "https://github.com/DaveGamble/cJSON";
description = "Ultralightweight JSON parser in ANSI C";