1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
Tuomas Tynkkynen 2258b21e4b treewide: Add lots of platforms to packages with no meta
Build-tested on x86_64 Linux and on Darwin.
2016-08-02 21:17:44 +03:00

21 lines
610 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 = map (p: p.out)
[xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];
meta = {
platforms = stdenv.lib.platforms.linux;
};
}