cjson: fix build on darwin
This commit is contained in:
parent
a4f4d86e92
commit
61aa366d56
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/DaveGamble/cJSON";
|
homepage = "https://github.com/DaveGamble/cJSON";
|
||||||
description = "Ultralightweight JSON parser in ANSI C";
|
description = "Ultralightweight JSON parser in ANSI C";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user