mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
bdcce09b46
svn path=/nixpkgs/trunk/; revision=33025
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
|
|
, openal, libvorbis, glew, freetype, xlibs, SDL, mesa
|
|
, jdk ? null, python ? null
|
|
, withAI ? true # support for AI Interfaces and Skirmish AIs
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "spring-${version}";
|
|
version = "0.87.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/springrts/spring_87.0_src.tar.lzma";
|
|
sha256 = "4c8528966b62e3fede63a4acb3cd5f13ecfed195688e135293bdc747980738b2";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|