1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 02:51:18 +00:00
nixpkgs/pkgs/games/ut2004demo/make-wrapper.sh

14 lines
236 B
Bash
Raw Normal View History

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