about summary refs log tree commit diff
path: root/pkgs/games/openmw/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/openmw/default.nix')
-rw-r--r--pkgs/games/openmw/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/games/openmw/default.nix b/pkgs/games/openmw/default.nix
index edeed841c923..22bd90a348a9 100644
--- a/pkgs/games/openmw/default.nix
+++ b/pkgs/games/openmw/default.nix
@@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     sed '1i#include <memory>' -i components/myguiplatform/myguidatamanager.cpp # gcc12
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     # Don't fix Darwin app bundle
     sed -i '/fixup_bundle/d' CMakeLists.txt
   '';
@@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
 
   # If not set, OSG plugin .so files become shell scripts on Darwin.
-  dontWrapQtApps = stdenv.isDarwin;
+  dontWrapQtApps = stdenv.hostPlatform.isDarwin;
 
   buildInputs = [
     SDL2
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
     recastnavigation
     unshield
     yaml-cpp
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     CoreMedia
     VideoDecodeAcceleration
     VideoToolbox
@@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DOpenGL_GL_PREFERENCE=${GL}"
     "-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=1"
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     "-DOPENMW_OSX_DEPLOYMENT=ON"
   ];