summary refs log tree commit diff
path: root/pkgs/games/ut2004demo/make-wrapper.sh
blob: 53ef90a615b06324dad7a1988dcd7aaff18dda30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
source $stdenv/setup

mkdir -p $out/bin

cat > $out/bin/ut2004demo <<EOF
#! $SHELL -e

cd $raw/System

LD_LIBRARY_PATH=$libX11/lib:$libXext/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ./ut2004-bin "\$@"
EOF

chmod +x $out/bin/ut2004demo