rapidjson: fix build on darwin

Disables -Werror

Alternatively one could use

  NIX_CFLAGS_COMPILE = [
    "-Wno-error=implicit-fallthrough"
    "-Wno-error=zero-as-null-pointer-constant"
    "-Wno-error=shadow"
  ];
This commit is contained in:
Dmitry Kalinkin 2018-03-16 16:05:56 -04:00
parent cc1d4addc5
commit af86bf34ff
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -13,14 +13,16 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig cmake ];
# detected by gcc7
NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ];
preConfigure = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
substituteInPlace example/CMakeLists.txt --replace "-Werror" ""
'';
meta = with lib; {
description = "Fast JSON parser/generator for C++ with both SAX/DOM style API";
homepage = "http://rapidjson.org/";
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ cstrahan ];
};
}