about summary refs log tree commit diff
path: root/pkgs/development/libraries/opensubdiv/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/opensubdiv/default.nix')
-rw-r--r--pkgs/development/libraries/opensubdiv/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/opensubdiv/default.nix b/pkgs/development/libraries/opensubdiv/default.nix
index b5c2847fb9ba..4cee5df5dc3d 100644
--- a/pkgs/development/libraries/opensubdiv/default.nix
+++ b/pkgs/development/libraries/opensubdiv/default.nix
@@ -31,8 +31,8 @@ stdenv.mkDerivation rec {
       glew xorg.libX11 xorg.libXrandr xorg.libXxf86vm xorg.libXcursor
       xorg.libXinerama xorg.libXi
     ]
-    ++ lib.optionals (openclSupport && !stdenv.isDarwin) [ ocl-icd ]
-    ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
+    ++ lib.optionals (openclSupport && !stdenv.hostPlatform.isDarwin) [ ocl-icd ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
       OpenCL
       Cocoa
       CoreVideo
@@ -58,10 +58,10 @@ stdenv.mkDerivation rec {
     [ "-DNO_TUTORIALS=1"
       "-DNO_REGRESSION=1"
       "-DNO_EXAMPLES=1"
-      (lib.cmakeBool "NO_METAL" (!stdenv.isDarwin))
+      (lib.cmakeBool "NO_METAL" (!stdenv.hostPlatform.isDarwin))
       (lib.cmakeBool "NO_OPENCL" (!openclSupport))
       (lib.cmakeBool "NO_CUDA" (!cudaSupport))
-    ] ++ lib.optionals (!stdenv.isDarwin) [
+    ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
       "-DGLEW_INCLUDE_DIR=${glew.dev}/include"
       "-DGLEW_LIBRARY=${glew.dev}/lib"
     ] ++ lib.optionals cudaSupport [