2013-01-22 13:56:01 +00:00
|
|
|
{ stdenv, fetchurl, libtheora, xvidcore, mesa, SDL, SDL_ttf, SDL_mixer
|
|
|
|
, curl, libjpeg, libpng, gettext, cunit, enableEditor?false }:
|
2010-08-29 00:45:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-22 13:56:01 +00:00
|
|
|
name = "ufoai-2.4";
|
2010-08-29 00:45:29 +00:00
|
|
|
src = fetchurl {
|
2013-01-22 13:56:01 +00:00
|
|
|
url = "mirror://sourceforge/ufoai/${name}-source.tar.bz2";
|
|
|
|
sha256 = "0kxrbcjrharcwz319s90m789i4my9285ihp5ax6kfhgif2vn2ji5";
|
2010-08-29 00:45:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
srcData = fetchurl {
|
2013-01-22 13:56:01 +00:00
|
|
|
url = "mirror://sourceforge/ufoai/${name}-data.tar";
|
|
|
|
sha256 = "1drhh08cqqkwv1yz3z4ngkplr23pqqrdx6cp8c3isy320gy25cvb";
|
2010-08-29 00:45:29 +00:00
|
|
|
};
|
|
|
|
|
2013-01-22 13:56:01 +00:00
|
|
|
preConfigure = ''tar xvf "${srcData}"'';
|
2010-08-29 00:45:29 +00:00
|
|
|
|
2013-01-22 13:56:01 +00:00
|
|
|
configureFlags = [ "--enable-release" "--enable-sse" ]
|
|
|
|
++ stdenv.lib.optional enableEditor "--enable-uforadiant";
|
2010-08-29 00:45:29 +00:00
|
|
|
|
2013-01-22 13:56:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtheora xvidcore mesa SDL SDL_ttf SDL_mixer
|
|
|
|
curl libjpeg libpng gettext cunit
|
|
|
|
];
|
2010-08-29 00:45:29 +00:00
|
|
|
|
2013-01-22 13:56:01 +00:00
|
|
|
NIX_CFLAGS_LINK = "-lgcc_s"; # to avoid occasional runtime error in finding libgcc_s.so.1
|
2010-08-29 00:45:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2013-01-22 13:56:01 +00:00
|
|
|
homepage = http://ufoai.org;
|
|
|
|
description = "A squad-based tactical strategy game in the tradition of X-Com";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-29 00:45:29 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2013-11-04 23:04:36 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2010-08-29 00:45:29 +00:00
|
|
|
};
|
|
|
|
}
|