about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix')
-rw-r--r--nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix b/nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
new file mode 100644
index 000000000000..f4043f700306
--- /dev/null
+++ b/nixpkgs/pkgs/os-specific/linux/opengl/xorg-sys/default.nix
@@ -0,0 +1,20 @@
+# 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;
+  };
+}