diff --git a/pkgs/build-support/opengl/mesa-switch.sh b/pkgs/build-support/opengl/mesa-switch.sh new file mode 100644 index 00000000000..bc9445319dd --- /dev/null +++ b/pkgs/build-support/opengl/mesa-switch.sh @@ -0,0 +1,41 @@ +profileName=opengl +profileDir=/nix/var/nix/profiles +profile=$profileDir/$profileName + +if test -z "$OPENGL_DRIVER"; then + if test -d "$profile/lib"; then + OPENGL_DRIVER=$profile + fi +fi + +if test -z "$OPENGL_DRIVER"; then + + cat <$out/bin/quake3 <