nixpkgs/pkgs/games/ufoai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.2 KiB
Nix
Raw Normal View History

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