nixpkgs-suyu/pkgs/games/wesnoth/default.nix

42 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, pango
, gettext, zlib, boost, freetype, libpng, pkgconfig, lua, dbus, fontconfig, libtool
2015-08-30 04:31:44 +02:00
, fribidi, asciidoc, libpthreadstubs, libXdmcp, libxshmfence, libvorbis }:
stdenv.mkDerivation rec {
pname = "wesnoth";
2016-02-07 09:22:08 +01:00
version = "1.12.5";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/sourceforge/${pname}/${name}.tar.bz2";
2016-02-07 09:22:08 +01:00
sha256 = "07d8ms9ayswg2g530p0zwmz3d77zv68l6nmc718iq9sbv90av6jr";
};
2015-08-30 04:31:44 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
2014-09-19 19:56:08 +02:00
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext zlib
2015-08-30 04:31:44 +02:00
boost fribidi freetype libpng lua libpthreadstubs libXdmcp
dbus fontconfig libtool libxshmfence libvorbis ];
cmakeFlags = [ "-DENABLE_STRICT_COMPILATION=FALSE" ]; # newer gcc problems http://gna.org/bugs/?21030
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
longDescription = ''
The Battle for Wesnoth is a Free, turn-based tactical strategy
game with a high fantasy theme, featuring both single-player, and
online/hotseat multiplayer combat. Fight a desperate battle to
reclaim the throne of Wesnoth, or take hand in any number of other
adventures.
'';
homepage = http://www.wesnoth.org/;
license = licenses.gpl2;
maintainers = [ maintainers.kkallio ];
platforms = platforms.linux;
};
}