about summary refs log tree commit diff
path: root/pkgs/development/libraries/cdo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/cdo/default.nix')
-rw-r--r--pkgs/development/libraries/cdo/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/cdo/default.nix b/pkgs/development/libraries/cdo/default.nix
index 3de126d111ef..3c63b23d1ce2 100644
--- a/pkgs/development/libraries/cdo/default.nix
+++ b/pkgs/development/libraries/cdo/default.nix
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
   # evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
   # we don't want to appear to be a catalyst build;
   # we are a TARGET_OS_MAC
-  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_MACCATALYST=0";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_MACCATALYST=0";
 
   meta = with lib; {
     description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data";