nixpkgs-suyu/pkgs/os-specific/linux/opengl/xorg-sys/builder.sh
Eelco Dolstra 410f21887a * A quick hack to get accelerated OpenGL working: just use the driver
in /usr/lib/libGL.so.1 (which will typically load a driver in
  /usr/X11R6/lib/modules/dri).  This has been tested on a i915
  graphics card; it should work with most open source X.org drivers.
  For NVidia's proprietary drivers (which we cannot build ourselves
  anyway), some more symlinks are necessary; I'll add those later.

  So to get hardware-accelerated Quake 3, do:

  $ nix-env -p /nix/var/nix/profiles/opengl -i xorg-sys-opengl
  $ nix-env -i quake3-demo
  $ quake3

svn path=/nixpkgs/trunk/; revision=4613
2006-01-28 01:13:31 +00:00

9 lines
142 B
Bash

source $stdenv/setup
ensureDir $out/lib
ln -s /usr/lib/libGL.so.1 $out/lib/
for i in $neededLibs; do
ln -s $i/lib/*.so* $out/lib/
done