mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
21 lines
608 B
Nix
21 lines
608 B
Nix
# 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 ;-)
|
|
|
|
{lib, stdenv, xorg, expat, libdrm}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "xorg-sys-opengl-3";
|
|
builder = ./builder.sh;
|
|
neededLibs = map (p: p.out)
|
|
[xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];
|
|
|
|
meta = {
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|