1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/games/ut2004demo/make-wrapper.sh
Eelco Dolstra 3ba77c1b40 * Get the Unreal Tournament 2004 demo to work with the new scheme for
handling OpenGL.

svn path=/nixpkgs/trunk/; revision=4616
2006-01-30 11:44:39 +00:00

20 lines
315 B
Bash

source $stdenv/setup
ensureDir $out/bin
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
cat > $out/bin/ut2004demo <<EOF
#! $SHELL -e
mesa=$mesa
$(cat $mesaSwitch)
cd $raw/System
LD_LIBRARY_PATH=$libX11/lib:$libXext/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ./ut2004-bin "\$@"
EOF
chmod +x $out/bin/ut2004demo