summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Mayer <tobim@fastmail.fm>2022-08-09 18:16:17 +0200
committerTobias Mayer <tobim@fastmail.fm>2022-08-09 18:16:17 +0200
commitc52294359c012f330ee7e9a2e2cacf8ef9c6ffc8 (patch)
treee1200fa52061ea5235fd2fe79d3f633fd727ce3b
parentMerge pull request #185807 from fabaff/pyunifiprotect-bump (diff)
downloadnixpkgs-c52294359c012f330ee7e9a2e2cacf8ef9c6ffc8.tar.gz
pkgsStatic.rapidjson: fix build
The library itself compiles fine, but the tests don't.
-rw-r--r--pkgs/development/libraries/rapidjson/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/rapidjson/default.nix b/pkgs/development/libraries/rapidjson/default.nix
index 49cbc7ab764c..de18e3fedd69 100644
--- a/pkgs/development/libraries/rapidjson/default.nix
+++ b/pkgs/development/libraries/rapidjson/default.nix
@@ -38,6 +38,8 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DGTEST_SOURCE_DIR=${gtest.dev}/include"
+ ] ++ lib.optionals stdenv.hostPlatform.isStatic [
+ "-DRAPIDJSON_BUILD_TESTS=OFF"
];
checkInputs = [