nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
Vladimír Čunát 88c9f8b574 xlibs: replace occurrences by xorg
This seems to have been confusing people, using both xlibs and xorg, etc.
- Avoided renaming local (and different) xlibs binding in gcc*.
- Fixed cases where both xorg and xlibs were used.
Hopefully everything still works as before.
2015-09-15 12:54:34 +02:00

17 lines
531 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 ;-)
{stdenv, xorg, expat, libdrm}:
stdenv.mkDerivation {
name = "xorg-sys-opengl-3";
builder = ./builder.sh;
neededLibs = [xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];
}