2015-09-15 12:13:22 +03:00
|
|
|
{ lib, stdenv, fetchurl, xlibsWrapper, SDL, mesa, openal, gcc46 }:
|
2006-01-26 17:43:05 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-01-10 15:24:48 +03:00
|
|
|
name = "ioquake3-1.36";
|
2014-11-04 16:27:51 +03:00
|
|
|
|
2006-01-26 18:31:37 +03:00
|
|
|
src = fetchurl {
|
2011-01-10 15:24:48 +03:00
|
|
|
url = http://ioquake3.org/files/1.36/ioquake3-1.36.tar.bz2; # calls itself "1.34-rc3"
|
2008-06-15 00:55:48 +04:00
|
|
|
sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv";
|
2006-01-26 21:50:25 +03:00
|
|
|
};
|
2008-06-15 00:55:48 +04:00
|
|
|
|
|
|
|
patchFlags = "-p0";
|
2014-11-04 16:27:51 +03:00
|
|
|
|
2008-06-15 00:55:48 +04:00
|
|
|
patches = [
|
|
|
|
# Fix for compiling on gcc 4.2.
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch?rev=1.1";
|
|
|
|
sha256 = "06c9lxfczcby5q29pim231mr2wdkvbv36xp9zbxp9vk0dfs8rv9x";
|
|
|
|
})
|
2011-01-10 15:24:48 +03:00
|
|
|
|
|
|
|
# Do an exit() instead of _exit(). This is nice for gcov.
|
|
|
|
# Upstream also seems to do this.
|
2014-11-04 16:27:51 +03:00
|
|
|
./exit.patch
|
2015-07-14 01:57:06 +03:00
|
|
|
|
|
|
|
# No bots on amd64 without this patch.
|
|
|
|
./botlib.patch
|
2008-06-15 00:55:48 +04:00
|
|
|
];
|
2014-11-04 16:27:51 +03:00
|
|
|
|
2015-09-15 12:13:22 +03:00
|
|
|
buildInputs = [ xlibsWrapper SDL mesa openal gcc46 ];
|
2008-06-15 00:55:48 +04:00
|
|
|
|
2012-02-18 20:35:04 +04:00
|
|
|
# Fix building on GCC 4.6.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2008-06-15 00:55:48 +04:00
|
|
|
preInstall = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/baseq3
|
2008-06-15 00:55:48 +04:00
|
|
|
installTargets=copyfiles
|
|
|
|
installFlags="COPYDIR=$out"
|
|
|
|
'';
|
2014-08-25 21:00:51 +04:00
|
|
|
|
2014-11-04 16:27:51 +03:00
|
|
|
meta = {
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
};
|
2006-01-26 18:31:37 +03:00
|
|
|
}
|