mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
19 lines
572 B
Bash
19 lines
572 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out/baseq3
|
|
for i in $paks; do
|
|
if test -d "$i/baseq3"; then
|
|
ln -s "$i/baseq3"/* $out/baseq3/
|
|
fi
|
|
done
|
|
|
|
# We add Mesa to the end of $LD_LIBRARY_PATH to provide fallback
|
|
# software rendering. GCC is needed so that libgcc_s.so can be found
|
|
# when Mesa is used.
|
|
makeWrapper $game/ioquake3.* $out/bin/quake3 \
|
|
--suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
|
|
--add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
|
|
|
|
makeWrapper $game/ioq3ded.* $out/bin/quake3-server \
|
|
--add-flags "+set fs_basepath $out"
|