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