cjson: fix build on darwin
parent
a4f4d86e92
commit
61aa366d56
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue