diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-02-27 00:49:47 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-02-27 00:49:47 +0000 |
commit | 213aefac174fa513cfa646bc87f7b51fc138c6b8 (patch) | |
tree | 0fc95d846cdeb4d76a81d24a0b943e70f2551f70 /pkgs/build-support | |
parent | 4788912bdef14ce7c75f41eefac9906d5b489f35 (diff) | |
download | nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar.gz nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar.bz2 nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar.lz nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar.xz nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.tar.zst nixlib-213aefac174fa513cfa646bc87f7b51fc138c6b8.zip |
* Look for the current OpenGL driver in /var/state/opengl-driver.
svn path=/nixpkgs/trunk/; revision=8068
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/opengl/mesa-switch.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/opengl/mesa-switch.sh b/pkgs/build-support/opengl/mesa-switch.sh index 8dcabc07dea3..59a316d8af0c 100644 --- a/pkgs/build-support/opengl/mesa-switch.sh +++ b/pkgs/build-support/opengl/mesa-switch.sh @@ -6,6 +6,10 @@ if test -z "$OPENGL_DRIVER"; then if test -d "$profile/lib"; then OPENGL_DRIVER=$profile fi + # OpenGL driver for current X server on NixOS. + if test -d /var/state/opengl-driver; then + OPENGL_DRIVER=/var/state/opengl-driver + fi fi if test -z "$OPENGL_DRIVER"; then |