about summary refs log tree commit diff
path: root/pkgs/development/libraries/nlohmann_json
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-30 18:50:59 +0100
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-30 18:56:12 +0100
commitad5e744714640aad36eda89e6b6026c397b4ace5 (patch)
treeb78d91499ee46f343c32dd5cf851cc015f7f1967 /pkgs/development/libraries/nlohmann_json
parent9b11307f42bb14d8f3ba50eb8bd80ab7dbbbec9f (diff)
treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck
This will respect `doCheck = false;` overrides, common for cross.
Diffstat (limited to 'pkgs/development/libraries/nlohmann_json')
-rw-r--r--pkgs/development/libraries/nlohmann_json/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/nlohmann_json/default.nix b/pkgs/development/libraries/nlohmann_json/default.nix
index 29c7ca2c690bf..2128fde93d040 100644
--- a/pkgs/development/libraries/nlohmann_json/default.nix
+++ b/pkgs/development/libraries/nlohmann_json/default.nix
@@ -43,10 +43,10 @@ in stdenv.mkDerivation (finalAttrs: {
   nativeBuildInputs = [ cmake ];
 
   cmakeFlags = [
-    "-DJSON_BuildTests=${if finalAttrs.doCheck then "ON" else "OFF"}"
+    "-DJSON_BuildTests=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
     "-DJSON_FastTests=ON"
     "-DJSON_MultipleHeaders=ON"
-  ] ++ lib.optional finalAttrs.doCheck "-DJSON_TestDataDirectory=${testData}";
+  ] ++ lib.optional finalAttrs.finalPackage.doCheck "-DJSON_TestDataDirectory=${testData}";
 
   doCheck = stdenv.hostPlatform == stdenv.buildPlatform;