about summary refs log tree commit diff
path: root/pkgs/development/libraries/catch2/3.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/catch2/3.nix')
-rw-r--r--pkgs/development/libraries/catch2/3.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/catch2/3.nix b/pkgs/development/libraries/catch2/3.nix
index 5985ec519ae4..c7d2296d9629 100644
--- a/pkgs/development/libraries/catch2/3.nix
+++ b/pkgs/development/libraries/catch2/3.nix
@@ -25,13 +25,13 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DCATCH_DEVELOPMENT_BUILD=ON"
     "-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"
-  ] ++ lib.optionals (stdenv.isDarwin && doCheck) [
+  ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && doCheck) [
     # test has a faulty path normalization technique that won't work in
     # our darwin build environment https://github.com/catchorg/Catch2/issues/1691
     "-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests"
   ];
 
-  env = lib.optionalAttrs stdenv.isx86_32 {
+  env = lib.optionalAttrs stdenv.hostPlatform.isx86_32 {
     # Tests fail on x86_32 if compiled with x87 floats: https://github.com/catchorg/Catch2/issues/2796
     NIX_CFLAGS_COMPILE = "-msse2 -mfpmath=sse";
   } // lib.optionalAttrs (stdenv.hostPlatform.isRiscV || stdenv.hostPlatform.isAarch32) {