about summary refs log tree commit diff
path: root/pkgs/development/libraries/bullet/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/bullet/default.nix')
-rw-r--r--pkgs/development/libraries/bullet/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/bullet/default.nix b/pkgs/development/libraries/bullet/default.nix
index 5ba9186dcac9..4a161423c7d3 100644
--- a/pkgs/development/libraries/bullet/default.nix
+++ b/pkgs/development/libraries/bullet/default.nix
@@ -21,13 +21,13 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ cmake ];
-  buildInputs = lib.optionals stdenv.isLinux [ libGLU libGL libglut ]
-    ++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL libglut ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa OpenGL ];
 
   postPatch = ''
     substituteInPlace examples/ThirdPartyLibs/Gwen/CMakeLists.txt \
       --replace "-DGLEW_STATIC" "-DGLEW_STATIC -Wno-narrowing"
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     sed -i 's/FIND_PACKAGE(OpenGL)//' CMakeLists.txt
     sed -i 's/FIND_LIBRARY(COCOA_LIBRARY Cocoa)//' CMakeLists.txt
   '';
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
     "-DBUILD_SHARED_LIBS=ON"
     "-DBUILD_CPU_DEMOS=OFF"
     "-DINSTALL_EXTRA_LIBS=ON"
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     "-DOPENGL_FOUND=true"
     "-DOPENGL_LIBRARIES=${OpenGL}/Library/Frameworks/OpenGL.framework"
     "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks/OpenGL.framework"