jsoncpp: disable tests when cross compiling

This commit is contained in:
Nick Cao 2021-12-27 19:35:28 +08:00
parent caecbc46ba
commit 27898b6928
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
"-DBUILD_STATIC_LIBS=OFF" "-DBUILD_STATIC_LIBS=OFF"
"-DBUILD_OBJECT_LIBS=OFF" "-DBUILD_OBJECT_LIBS=OFF"
"-DJSONCPP_WITH_CMAKE_PACKAGE=ON" "-DJSONCPP_WITH_CMAKE_PACKAGE=ON"
]; ] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DJSONCPP_WITH_TESTS=OFF";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/open-source-parsers/jsoncpp"; homepage = "https://github.com/open-source-parsers/jsoncpp";