3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/widelands/default.nix
宋文武 5668a70a49 widelands: update to build-18 (close #2062)
@vcunat enabled parallelBuilding.
2014-03-29 18:38:46 +01:00

47 lines
1.2 KiB
Nix

{ stdenv, fetchurl, cmake, python, gettext
, boost, libpng, zlib, glew, lua
, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, SDL_gfx
}:
stdenv.mkDerivation {
name = "widelands-18";
meta = with stdenv.lib; {
description = "RTS with multiple-goods economy";
homepage = "http://widelands.org/";
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
multiplayer mode.
'';
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ raskin jcumming ];
hydraPlatforms = [];
};
src = fetchurl {
url = "https://launchpad.net/widelands/build18/build-18/+download/"
+ "widelands-build18-src.tar.bz2";
sha256 = "1qvx1cwkf61iwq0qkngvg460dsxqsfvk36qc7jf7mzwkiwbxkzvd";
};
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;
}