nixpkgs/pkgs/games/spring/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ 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}";
2013-12-04 01:54:34 +00:00
version = "95.0";
src = fetchurl {
2013-03-29 15:43:38 +00:00
url = "mirror://sourceforge/springrts/spring_${version}_src.tar.lzma";
2013-12-04 01:54:34 +00:00
sha256 = "0g0jfbbxl1g8nasibw13yjnsgalnfn4s2ii5z4s8k87vla9apg1v";
};
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/;
2013-10-07 15:36:47 +00:00
description = "A powerful real-time strategy (RTS) game engine";
license = licenses.gpl2;
maintainers = [ maintainers.phreedom maintainers.qknight ];
2013-10-07 15:36:47 +00:00
platforms = platforms.mesaPlatforms;
};
}