nixpkgs-suyu/pkgs/games/spring/default.nix
Joachim Schiele 49f2fef481 updated spring from 88 to 91 and downgraded the boost library which spring uses from default to 1.49 as the
more recent boost version results in a build issue at about 30%
2012-10-28 13:43:15 +00:00

35 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
, openal, libvorbis, glew, freetype, xlibs, SDL, mesa, binutils
, jdk ? null, python ? null
, withAI ? true # support for AI Interfaces and Skirmish AIs
}:
stdenv.mkDerivation rec {
name = "spring-${version}";
version = "0.91.0";
src = fetchurl {
url = "mirror://sourceforge/springrts/spring_91.0_src.tar.lzma";
sha256 = "0ycn9yxpbw58a8p3j3wf3r0x102k665l27bfp1vxq7kpwlk6314l";
};
buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL
xlibs.libX11 xlibs.libXcursor mesa glew ]
++ 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" \
--replace "which" "type -p"
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://springrts.com/;
description = "A powerful real-time strategy(RTS) game engine";
license = licenses.gpl2;
maintainers = [ maintainers.phreedom maintainers.qknight ];
platforms = platforms.unix;
};
}