about summary refs log tree commit diff
path: root/pkgs/development/libraries/openscenegraph/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/openscenegraph/default.nix')
-rw-r--r--pkgs/development/libraries/openscenegraph/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/openscenegraph/default.nix b/pkgs/development/libraries/openscenegraph/default.nix
index 3566e458598c..1b0f4b229d36 100644
--- a/pkgs/development/libraries/openscenegraph/default.nix
+++ b/pkgs/development/libraries/openscenegraph/default.nix
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ pkg-config cmake doxygen ];
 
-  buildInputs = lib.optionals (!stdenv.isDarwin) [
+  buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
     libX11 libXinerama libXrandr libGLU libGL
   ] ++ [
     glib libxml2 pcre zlib
@@ -63,8 +63,8 @@ stdenv.mkDerivation rec {
     ++ lib.optional sdlSupport SDL2
     ++ lib.optional restSupport asio
     ++ lib.optionals withExamples [ fltk ]
-    ++ lib.optionals (!stdenv.isDarwin) [  ]
-    ++ lib.optionals stdenv.isDarwin [ AGL Accelerate Carbon Cocoa Foundation ]
+    ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [  ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ AGL Accelerate Carbon Cocoa Foundation ]
     ++ lib.optional (restSupport || colladaSupport) boost
     ;