2010-11-12 23:47:04 -08:00
|
|
|
{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
|
2012-03-27 04:07:53 -07:00
|
|
|
, openal, libvorbis, glew, freetype, xlibs, SDL, mesa, binutils
|
2013-12-03 19:24:02 -08:00
|
|
|
, asciidoc, libxslt, docbook_xsl, curl
|
2010-11-12 23:47:04 -08:00
|
|
|
, jdk ? null, python ? null
|
|
|
|
, withAI ? true # support for AI Interfaces and Skirmish AIs
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "spring-${version}";
|
2014-02-05 06:24:56 -08:00
|
|
|
version = "96.0";
|
2010-11-12 23:47:04 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-03-29 08:43:38 -07:00
|
|
|
url = "mirror://sourceforge/springrts/spring_${version}_src.tar.lzma";
|
2014-02-05 06:24:56 -08:00
|
|
|
sha256 = "1axyqkxgv3a0zg0afzlc7j3lyi412zd551j317ci41yqz2qzf0px";
|
2010-11-12 23:47:04 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL
|
2013-12-03 19:24:02 -08:00
|
|
|
xlibs.libX11 xlibs.libXcursor mesa glew asciidoc libxslt docbook_xsl curl ]
|
2010-11-12 23:47:04 -08:00
|
|
|
++ stdenv.lib.optional withAI jdk
|
|
|
|
++ stdenv.lib.optional withAI python;
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace cont/base/make_gamedata_arch.sh --replace "#!/bin/sh" "#!${stdenv.shell}/bin/sh" \
|
2011-12-11 10:35:23 -08:00
|
|
|
--replace "which" "type -p"
|
2010-11-12 23:47:04 -08:00
|
|
|
'';
|
|
|
|
|
2014-02-04 23:20:20 -08:00
|
|
|
#enableParallelBuilding = true; # occasionally missing generated files on Hydra
|
2010-11-12 23:47:04 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springrts.com/;
|
2013-10-07 08:36:47 -07:00
|
|
|
description = "A powerful real-time strategy (RTS) game engine";
|
2010-11-12 23:47:04 -08:00
|
|
|
license = licenses.gpl2;
|
2012-03-12 08:11:37 -07:00
|
|
|
maintainers = [ maintainers.phreedom maintainers.qknight ];
|
2013-10-07 08:36:47 -07:00
|
|
|
platforms = platforms.mesaPlatforms;
|
2010-11-12 23:47:04 -08:00
|
|
|
};
|
2011-12-11 10:35:23 -08:00
|
|
|
}
|