nixpkgs/pkgs/games/ut2004demo/make-wrapper.sh
Eelco Dolstra 82e678362f * "." -> "source".
svn path=/nixpkgs/trunk/; revision=4335
2005-12-05 14:11:09 +00:00

17 lines
295 B
Bash

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