diff options
Diffstat (limited to 'pkgs/games/quake3/game/default.nix')
-rw-r--r-- | pkgs/games/quake3/game/default.nix | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/games/quake3/game/default.nix b/pkgs/games/quake3/game/default.nix index c7fe303b5efff..292748c4546ab 100644 --- a/pkgs/games/quake3/game/default.nix +++ b/pkgs/games/quake3/game/default.nix @@ -1,11 +1,29 @@ {stdenv, fetchurl, x11, SDL, mesa, openal}: stdenv.mkDerivation { - name = "quake3-icculus-1.33pre526"; + name = "ioquake3-1.34-pre-rc3"; + src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/quake3-icculus-r526.tar.bz2; - md5 = "63429347b918052c27cdb5c1d15939ad"; + url = http://ioquake3.org/files/ioquake3_1.34-rc3.tar.bz2; + sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv"; }; - builder = ./builder.sh; + + patchFlags = "-p0"; + + 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"; + }) + ]; + buildInputs = [x11 SDL mesa openal]; + + preInstall = '' + ensureDir $out/baseq3 + installTargets=copyfiles + installFlags="COPYDIR=$out" + ''; + } |