2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-06-09 20:06:29 +02:00
|
|
|
|
2006-01-30 12:44:39 +01:00
|
|
|
ensureDir $out/bin
|
2004-06-09 20:06:29 +02:00
|
|
|
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
|
|
|
|
|
|
cat > $out/bin/ut2004demo <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
|
2006-01-30 12:44:39 +01:00
|
|
|
mesa=$mesa
|
|
|
|
|
|
|
|
$(cat $mesaSwitch)
|
|
|
|
|
2004-06-09 20:06:29 +02:00
|
|
|
cd $raw/System
|
|
|
|
|
2006-01-30 12:44:39 +01:00
|
|
|
LD_LIBRARY_PATH=$libX11/lib:$libXext/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ./ut2004-bin "\$@"
|
2004-06-09 20:06:29 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/bin/ut2004demo
|