nixpkgs-suyu/pkgs/games/ut2004demo/make-wrapper.sh
Eelco Dolstra b90781ec21 * Renamed orig-glibc -> orig-libc in some places, and in others, use
the new $NIX_GCC/nix-support/dynamic-linker file to locate the
  dynamic linker directly (don't hardcode ld-linux.so.2).

svn path=/nixpkgs/trunk/; revision=6873
2006-10-27 12:43:32 +00:00

17 lines
269 B
Bash

source $stdenv/setup
ensureDir $out/bin
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