2010-05-03 17:07:01 +01:00
|
|
|
{ stdenv, fetchurl, bison, flex, gettext, pkgconfig, SDL, libpng, libtheora
|
|
|
|
, openal, popt, physfs, mesa, quesoglc, zip, unzip, which
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "warzone2100";
|
2011-11-20 17:10:54 +00:00
|
|
|
version = "2.3.9";
|
2010-05-03 17:07:01 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pname}/${name}.tar.gz";
|
2011-11-20 17:10:54 +00:00
|
|
|
sha256 = "1nvs4slnl75b64pf9gwcpbra56jzcbxyv83fis5pki69aavkp14y";
|
2010-05-03 17:07:01 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ bison flex gettext pkgconfig SDL libpng libtheora openal
|
|
|
|
popt physfs mesa quesoglc zip unzip
|
|
|
|
];
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
|
|
|
|
--replace "which %s" "${which}/bin/which %s"
|
|
|
|
substituteInPlace lib/exceptionhandler/exceptionhandler.c \
|
|
|
|
--replace "which %s" "${which}/bin/which %s"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "A free RTS game, originally developed by Pumpkin Studios";
|
|
|
|
longDescription = ''
|
|
|
|
Warzone 2100 is an open source real-time strategy and real-time tactics
|
|
|
|
hybrid computer game, originally developed by Pumpkin Studios and
|
|
|
|
published by Eidos Interactive.
|
|
|
|
In Warzone 2100, you command the forces of The Project in a battle to
|
|
|
|
rebuild the world after mankind has almost been destroyed by nuclear
|
|
|
|
missiles. The game offers campaign, multi-player, and single-player
|
|
|
|
skirmish modes. An extensive tech tree with over 400 different
|
|
|
|
technologies, combined with the unit design system, allows for a wide
|
|
|
|
variety of possible units and tactics.
|
|
|
|
'';
|
|
|
|
homepage = http://wz2100.net;
|
|
|
|
license = [ "GPLv2+" ];
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|