2006-01-28 01:13:31 +00:00
|
|
|
# This is a very dirty hack to allow hardware acceleration of OpenGL
|
|
|
|
# applications for most (?) users. It will use the driver that your
|
|
|
|
# Linux distribution installed in /usr/lib/libGL.so.1. Hopefully,
|
|
|
|
# this driver uses hardware acceleration.
|
|
|
|
#
|
|
|
|
# Of course, use of the driver in /usr/lib is highly impure. But it
|
|
|
|
# might actually work ;-)
|
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
{lib, stdenv, xorg, expat, libdrm}:
|
2006-01-28 01:13:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "xorg-sys-opengl";
|
|
|
|
version = "3";
|
2006-01-28 01:13:31 +00:00
|
|
|
builder = ./builder.sh;
|
2016-04-14 11:41:13 +00:00
|
|
|
neededLibs = map (p: p.out)
|
|
|
|
[xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2006-01-28 01:13:31 +00:00
|
|
|
}
|