* Get the Quake 3 demo data to work with the open source Quake 3.
quake3/demo takes care of downloading and patching the required PAK files. quake3/wrapper calls the Quake binary with a synthesised directory of symlinks to activated PAK files. This should make it easy to plug in the commercial PAKs, or third-party mods. svn path=/nixpkgs/trunk/; revision=4611
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
source $stdenv/setup
|
||||
|
||||
|
||||
ensureDir $out/baseq3
|
||||
for i in $paks; do
|
||||
if test -d "$paks/baseq3"; then
|
||||
ln -s $paks/baseq3/* $out/baseq3/
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
ensureDir $out/bin
|
||||
|
||||
cat >$out/bin/quake3 <<EOF
|
||||
exec $game/ioquake3.i386 \
|
||||
+set fs_basepath $out \
|
||||
"\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/quake3
|
||||
@@ -0,0 +1,7 @@
|
||||
{stdenv, fetchurl, game, paks}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "quake3";
|
||||
builder = ./builder.sh;
|
||||
inherit game paks;
|
||||
}
|
||||
Reference in New Issue
Block a user