about summary refs log tree commit diff
path: root/pkgs/games/wesnoth/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/wesnoth/default.nix')
-rw-r--r--pkgs/games/wesnoth/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/wesnoth/default.nix b/pkgs/games/wesnoth/default.nix
index 01dd8ceaca173..5017216aecc43 100644
--- a/pkgs/games/wesnoth/default.nix
+++ b/pkgs/games/wesnoth/default.nix
@@ -20,13 +20,13 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf pango gettext boost
                   libvorbis fribidi dbus libpng pcre openssl icu lua curl ]
-                ++ lib.optionals stdenv.isDarwin [ Cocoa Foundation];
+                ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa Foundation];
 
   cmakeFlags = [
     "-DENABLE_SYSTEM_LUA=ON"
   ];
 
-  NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework AppKit";
+  NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit";
 
   meta = with lib; {
     description = "Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";