nixpkgs/pkgs/games/ufoai/default.nix
Anderson Torres 9a624d10e3 treewide: remove viric from meta.maintainers [orphans]
Since theey is not active from at least six years.

All the packages on this commit became orphans.

---------------------------------------------------------------------------
There are files not covered by this commit, because they will be adopted
soon. Namely:

- pkgs/by-name/zs/zsync/package.nix
- pkgs/games/bsdgames/default.nix
- pkgs/misc/ghostscript/default.nix
- pkgs/os-specific/linux/kernel/perf/default.nix
- pkgs/tools/system/logrotate/default.nix
2024-07-28 11:48:51 -03:00

51 lines
1.6 KiB
Nix

{ lib, stdenv, fetchurl, libtheora, xvidcore, libGLU, libGL, SDL, SDL_ttf, SDL_mixer
, curl, libjpeg, libpng, gettext, cunit, enableEditor?false }:
stdenv.mkDerivation rec {
pname = "ufoai";
version = "2.4";
src = fetchurl {
url = "mirror://sourceforge/ufoai/ufoai-${version}-source.tar.bz2";
sha256 = "0kxrbcjrharcwz319s90m789i4my9285ihp5ax6kfhgif2vn2ji5";
};
srcData = fetchurl {
url = "mirror://sourceforge/ufoai/ufoai-${version}-data.tar";
sha256 = "1drhh08cqqkwv1yz3z4ngkplr23pqqrdx6cp8c3isy320gy25cvb";
};
# Workaround build failure on -fno-common toolchains:
# ld: r_gl.h:52: multiple definition of `qglGenBuffers';
# r_gl.h:52: first defined here
# TODO: drop once release contains upstream fix:
# https://github.com/ufoai/ufoai/commit/8a3075fffdad294e
env.NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''tar xvf "${srcData}"'';
configureFlags = [ "--enable-release" "--enable-sse" ]
++ lib.optional enableEditor "--enable-uforadiant";
buildInputs = [
libtheora xvidcore libGLU libGL SDL SDL_ttf SDL_mixer
curl libjpeg libpng gettext cunit
];
NIX_CFLAGS_LINK = [
# to avoid occasional runtime error in finding libgcc_s.so.1
"-lgcc_s"
# tests are underlinked against libm:
# ld: release-linux-x86_64/testall/client/sound/s_mix.c.o: undefined reference to symbol 'acos@@GLIBC_2.2.5'
"-lm"
];
meta = {
homepage = "http://ufoai.org";
description = "Squad-based tactical strategy game in the tradition of X-Com";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
hydraPlatforms = [];
};
}