summary refs log tree commit diff
path: root/pkgs/games/wesnoth
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-29 21:19:45 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-31 12:34:15 -0400
commit9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899 (patch)
treeace66e5ff3302229d2ff960a5b593eb0a73ed5cb /pkgs/games/wesnoth
parent279fd72b339a88aac56b425bdd3dbdc6ba3f7c1c (diff)
downloadnixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar.gz
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar.bz2
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar.lz
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar.xz
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.tar.zst
nixpkgs-9a4cb9003e32fdb1e07e044a7ee9b96bbebfa899.zip
wesnoth: supports darwin
Diffstat (limited to 'pkgs/games/wesnoth')
-rw-r--r--pkgs/games/wesnoth/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/games/wesnoth/default.nix b/pkgs/games/wesnoth/default.nix
index a30685338b0..12fb0bd60b0 100644
--- a/pkgs/games/wesnoth/default.nix
+++ b/pkgs/games/wesnoth/default.nix
@@ -1,5 +1,6 @@
 { stdenv, fetchurl, cmake, pkgconfig, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf
 , pango, gettext, boost, freetype, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu
+, Cocoa, Foundation
 , enableTools ? false
 }:
 
@@ -17,7 +18,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake pkgconfig ];
 
   buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf pango gettext boost
-                  libvorbis fribidi dbus libpng pcre openssl icu ];
+                  libvorbis fribidi dbus libpng pcre openssl icu ]
+                ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation];
 
   cmakeFlags = [ "-DENABLE_TOOLS=${if enableTools then "ON" else "OFF"}" ];
 
@@ -36,6 +38,6 @@ stdenv.mkDerivation rec {
     homepage = http://www.wesnoth.org/;
     license = licenses.gpl2;
     maintainers = with maintainers; [ abbradar ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }