nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
624 B
Nix
Raw Normal View History

# 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}:
stdenv.mkDerivation {
pname = "xorg-sys-opengl";
version = "3";
builder = ./builder.sh;
neededLibs = map (p: p.out)
[xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];
meta = {
2021-01-15 14:45:37 +00:00
platforms = lib.platforms.linux;
};
}