1 { lib, stdenv, fetchFromGitHub
2 , cmake, pkg-config, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf
3 , pango, gettext, boost, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu
8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
16 hash = "sha256-nr+WUFzHeaPxCzwc+8JZRL86X8XEsnsGM1HXnNqOIF0=";
19 nativeBuildInputs = [ cmake pkg-config ];
21 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf pango gettext boost
22 libvorbis fribidi dbus libpng pcre openssl icu lua curl ]
23 ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa Foundation];
26 "-DENABLE_SYSTEM_LUA=ON"
29 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit";
32 description = "Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
34 The Battle for Wesnoth is a Free, turn-based tactical strategy
35 game with a high fantasy theme, featuring both single-player, and
36 online/hotseat multiplayer combat. Fight a desperate battle to
37 reclaim the throne of Wesnoth, or take hand in any number of other
41 homepage = "https://www.wesnoth.org/";
42 license = licenses.gpl2Plus;
43 maintainers = with maintainers; [ abbradar ];
44 platforms = platforms.unix;