From ec882e97d50f13f479e1dc620a663c41cd2fd82e Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Sun, 27 May 2007 14:57:59 +0000
Subject: [PATCH] * Use a non-corrupt copy of linuxq3apoint-1.31.x86.run. *
 Make the baseq3 files a fixed-output derivation, so that if   (say) stdenv
 changes, it doesn't have to be rebuilt.  This   is nice because the baseq3
 directory is pretty big.

svn path=/nixpkgs/trunk/; revision=8781
---
 pkgs/games/quake3/demo/default.nix | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/pkgs/games/quake3/demo/default.nix b/pkgs/games/quake3/demo/default.nix
index afeb98c62e87..f3c417aed296 100644
--- a/pkgs/games/quake3/demo/default.nix
+++ b/pkgs/games/quake3/demo/default.nix
@@ -12,8 +12,13 @@ stdenv.mkDerivation {
 
   # This is needed for the additional pak?.pk3 files.
   update = fetchurl {
-    url = http://www.dev1ance.net/files/quake3/point_release/linux/linuxq3apoint-1.31.x86.run;
-    sha256 = "1n6mk2x99vl40br1zvwvdl8fs8ldsbi7byf7wj385g1xywzvqqr8";
+    url = http://losser.st-lab.cs.uu.nl/~eelco/dist/linuxq3apoint-1.31.x86.run;
+    md5 = "2620b9eefb6d0775f766b6570870157a";
   };
-  
+
+  # Don't rebuild if the inputs change, since the output is guaranteed
+  # to be this value.
+  outputHashMode = "recursive";
+  outputHashAlgo = "sha256";
+  outputHash = "00453c43a4jnlbm9w9ws1hdi28hkl63xnxbnbqml25h35ckhzs90";
 }