mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
wesnoth: supports darwin
This commit is contained in:
parent
279fd72b33
commit
9a4cb9003e
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -19618,7 +19618,9 @@ with pkgs;
|
||||
|
||||
warzone2100 = libsForQt5.callPackage ../games/warzone2100 { };
|
||||
|
||||
wesnoth = callPackage ../games/wesnoth { };
|
||||
wesnoth = callPackage ../games/wesnoth {
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa Foundation;
|
||||
};
|
||||
|
||||
wesnoth-dev = wesnoth;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user