summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobim <tobim@fastmail.fm>2022-08-10 00:34:22 +0200
committerGitHub <noreply@github.com>2022-08-10 00:34:22 +0200
commit9f980dee7f3a386fd5df9348a9330b1e6999da9f (patch)
tree9766c0beaae66826479c2f479b2894c2bda603f5
parentpkgsStatic.rapidjson: fix build (diff)
downloadnixpkgs-9f980dee7f3a386fd5df9348a9330b1e6999da9f.tar.gz
pkgsStatic.rapidjson: disable checks
-rw-r--r--pkgs/development/libraries/rapidjson/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/rapidjson/default.nix b/pkgs/development/libraries/rapidjson/default.nix
index de18e3fedd69..ac2d7e0b5f55 100644
--- a/pkgs/development/libraries/rapidjson/default.nix
+++ b/pkgs/development/libraries/rapidjson/default.nix
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DGTEST_SOURCE_DIR=${gtest.dev}/include"
- ] ++ lib.optionals stdenv.hostPlatform.isStatic [
+ ] ++ lib.optionals (!doCheck) [
"-DRAPIDJSON_BUILD_TESTS=OFF"
];
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
runHook postCheck
'';
- doCheck = true;
+ doCheck = !stdenv.hostPlatform.isStatic;
meta = with lib; {
description = "Fast JSON parser/generator for C++ with both SAX/DOM style API";