This website requires JavaScript.
Explore
Help
Sign In
philipp
/
nixpkgs
Watch
1
Star
0
Fork
You've already forked nixpkgs
0
Code
Issues
Pull requests
Projects
Releases
Activity
d53e98bd20
nixpkgs
/
pkgs
/
games
/
quake3demo
/
builder.sh
10 lines
81 B
Bash
Raw
Normal View
History
Unescape
Escape
* "." -> "source". svn path=/nixpkgs/trunk/; revision=4335
2005-12-05 15:11:09 +01:00
source
$stdenv
/setup
* Quake 3 Arena Demo. The goal is to show that Nix can also be used to deploy existing binary-only components. We use the `ld-linux.so.2 PROGRAM' trick to force the use of our own glibc, and set LD_LIBRARY_PATH to point to the required libraries (X11, Mesa). Since Mesa is software-only, Q3A is rather slow. I'll have to figure out how to use the Mesa from XFree86 (X.Org), since it knows how to use DRI (or at least speak the GLX protocol). Unfortunately the xlibs people haven't modularised that part of XFree86 yet. Also, the flag `+set s_initsound 0' has to be passed to Quake to disable sound, otherwise it segfaults on startup. It doesn't do this with the normal glibc, which is strange. Maybe it tries to dynamically load some sound library or something. svn path=/nixpkgs/trunk/; revision=1046
2004-06-09 19:59:46 +02:00
skip
=
165
mkdir
$out
cd
$out
tail +165
$src
|
tar xvfz -
Reference in a new issue
Copy permalink