summary refs log tree commit diff
path: root/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
blob: b7f1b6574404168a0d9c3f4791da41323d1fefd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 {
  pname = "xorg-sys-opengl";
  version = "3";
  builder = ./builder.sh;
  neededLibs = map (p: p.out)
    [xorg.libXxf86vm xorg.libXext expat libdrm stdenv.cc.cc];

  meta = {
    platforms = lib.platforms.linux;
  };
}