mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
17 lines
535 B
Nix
17 lines
535 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, xlibs, expat, libdrm}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "xorg-sys-opengl-3";
|
|
builder = ./builder.sh;
|
|
neededLibs = [xlibs.libXxf86vm xlibs.libXext expat libdrm stdenv.cc.gcc];
|
|
}
|
|
|