From 182c974f574f82115304ff61023493af208ed720 Mon Sep 17 00:00:00 2001 From: Madoura Date: Thu, 14 Jul 2022 02:34:26 -0500 Subject: [PATCH] nlohmann_json: Enable JSON_FastTests, use JSON_BuildTests instead of BuildTests --- pkgs/development/libraries/nlohmann_json/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/nlohmann_json/default.nix b/pkgs/development/libraries/nlohmann_json/default.nix index 70699db418ad..3c8244c75532 100644 --- a/pkgs/development/libraries/nlohmann_json/default.nix +++ b/pkgs/development/libraries/nlohmann_json/default.nix @@ -24,7 +24,8 @@ in stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; cmakeFlags = [ - "-DBuildTests=${if finalAttrs.doCheck then "ON" else "OFF"}" + "-DJSON_BuildTests=${if finalAttrs.doCheck then "ON" else "OFF"}" + "-DJSON_FastTests=ON" "-DJSON_MultipleHeaders=ON" ] ++ lib.optional finalAttrs.doCheck "-DJSON_TestDataDirectory=${testData}";