jsoncpp: disable tests when cross compiling

This commit is contained in:
Nick Cao
2022-01-01 12:14:45 +08:00
parent caecbc46ba
commit 27898b6928
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
"-DBUILD_STATIC_LIBS=OFF"
"-DBUILD_OBJECT_LIBS=OFF"
"-DJSONCPP_WITH_CMAKE_PACKAGE=ON"
];
] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DJSONCPP_WITH_TESTS=OFF";
meta = with lib; {
homepage = "https://github.com/open-source-parsers/jsoncpp";