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