summary refs log tree commit diff
path: root/pkgs/development/libraries/libglvnd
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-01-30 00:28:37 +0300
committerNikolay Amiantov <ab@fmap.me>2017-02-08 16:56:50 +0300
commit750e7ba0d958a08cdef16a2147263586a55a3e4d (patch)
tree569c73ccdc52648865c6ec0fbc899305f18c3d7a /pkgs/development/libraries/libglvnd
parentafd59811a1f4b2037d77293064a4fee0ac91af6f (diff)
downloadnixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar.gz
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar.bz2
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar.lz
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar.xz
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.tar.zst
nixpkgs-750e7ba0d958a08cdef16a2147263586a55a3e4d.zip
libglvnd: init at 2016-12-22
Diffstat (limited to 'pkgs/development/libraries/libglvnd')
-rw-r--r--pkgs/development/libraries/libglvnd/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libglvnd/default.nix b/pkgs/development/libraries/libglvnd/default.nix
new file mode 100644
index 00000000000..07d63c66b78
--- /dev/null
+++ b/pkgs/development/libraries/libglvnd/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchFromGitHub, autoreconfHook, python2, pkgconfig, mesa_noglu, libX11, libXext, glproto }:
+
+# Git version is needed for EGL and GLES handling.
+
+stdenv.mkDerivation rec {
+  name = "libglvnd-2016-12-22";
+
+  src = fetchFromGitHub {
+    owner = "NVIDIA";
+    repo = "libglvnd";
+    rev = "dc16f8c337703ad141f83583a4004fcf42e07766";
+    sha256 = "1dbwf1216np77xf1kx3ci3y7hfa1p4vgrrzg71gw36hqxf36vg5f";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkgconfig python2 ];
+  buildInputs = [ libX11 libXext glproto ];
+
+  NIX_CFLAGS_COMPILE = [
+    "-UDEFAULT_EGL_VENDOR_CONFIG_DIRS"
+    "-DDEFAULT_EGL_VENDOR_CONFIG_DIRS=\"${mesa_noglu.driverLink}/share/glvnd/egl_vendor.d\""
+  ];
+
+  outputs = [ "out" "dev" ];
+
+  meta = with stdenv.lib; {
+    description = "The GL Vendor-Neutral Dispatch library";
+    homepage = "https://github.com/NVIDIA/libglvnd";
+    license = licenses.bsd2;
+    platforms = platforms.linux;
+  };
+}