mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
17 lines
295 B
Bash
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
|