2014-03-29 15:10:03 +00:00
|
|
|
{ stdenv, fetchurl, cmake, python, gettext
|
|
|
|
, boost, libpng, zlib, glew, lua
|
|
|
|
, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, SDL_gfx
|
|
|
|
}:
|
2011-04-17 18:55:29 +01:00
|
|
|
|
2014-03-29 15:10:03 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "widelands-18";
|
2011-04-17 18:55:29 +01:00
|
|
|
|
2014-03-29 15:10:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "RTS with multiple-goods economy";
|
|
|
|
homepage = "http://widelands.org/";
|
2012-10-05 17:36:36 +01:00
|
|
|
longDescription = ''
|
|
|
|
Widelands is a real time strategy game based on "The Settlers" and "The
|
|
|
|
Settlers II". It has a single player campaign mode, as well as a networked
|
2014-03-29 15:10:03 +00:00
|
|
|
multiplayer mode.
|
2012-10-05 17:36:36 +01:00
|
|
|
'';
|
2014-03-29 15:10:03 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin jcumming ];
|
2013-11-04 23:04:36 +00:00
|
|
|
hydraPlatforms = [];
|
2011-04-17 18:55:29 +01:00
|
|
|
};
|
2014-03-29 15:10:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/widelands/build18/build-18/+download/"
|
|
|
|
+ "widelands-build18-src.tar.bz2";
|
|
|
|
sha256 = "1qvx1cwkf61iwq0qkngvg460dsxqsfvk36qc7jf7mzwkiwbxkzvd";
|
2011-04-17 18:55:29 +01:00
|
|
|
};
|
|
|
|
|
2014-03-29 15:10:03 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="
|
|
|
|
-DWL_INSTALL_PREFIX=$out
|
|
|
|
-DWL_INSTALL_BINDIR=bin
|
|
|
|
-DWL_INSTALL_DATADIR=share/widelands
|
|
|
|
"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python gettext ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost libpng zlib glew lua
|
|
|
|
SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
}
|