@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchpatch
22, pkgconfig, intltool, autoreconfHook, substituteAll
3−, file, expat, libdrm, xorg, wayland, systemd
3+, file, expat, libdrm, xorg, wayland, systemd, openssl
44, llvmPackages, libffi, libomxil-bellagio, libva
55, libelf, libvdpau, python2
66, grsecEnabled ? false
@@ -71,11 +71,13 @@ stdenv.mkDerivation {
7171 "--with-dri-driverdir=$(drivers)/lib/dri"
7272 "--with-dri-searchpath=${driverLink}/lib/dri"
7373 "--with-egl-platforms=x11,wayland,drm"
74− (optionalString (stdenv.system != "armv7l-linux")
75− "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast")
76− (optionalString (stdenv.system != "armv7l-linux")
77− "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast")
78−
74+ ]
75+ ++ optionals (stdenv.system != "armv7l-linux") [
76+ "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast"
77+ "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast"
78+ "--with-vulkan-drivers=intel"
79+ ]
80+ ++ [
7981 (enableFeature enableTextureFloats "texture-float")
8082 (enableFeature grsecEnabled "glx-rts")
8183 (enableFeature stdenv.isLinux "dri3")
@@ -112,7 +114,7 @@ stdenv.mkDerivation {
112114 glproto dri2proto dri3proto presentproto
113115 libX11 libXext libxcb libXt libXfixes libxshmfence
114116 libffi wayland libvdpau libelf libXvMC
115− libomxil-bellagio libva libpthreadstubs
117+ libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
116118 (python2.withPackages (ps: [ ps.Mako ]))
117119 ] ++ optional stdenv.isLinux systemd;
118120
@@ -134,8 +136,13 @@ stdenv.mkDerivation {
134136 $out/lib/vdpau \
135137 $out/lib/bellagio \
136138 $out/lib/libxatracker* \
139+ $out/lib/libvulkan_* \
140+
141+ # move share/vulkan/icd.d/
142+ mv $out/share/ $drivers/
137143
138144 mv $out/lib/dri/* $drivers/lib/dri
145+ rmdir "$out/lib/dri"
139146
140147 # move libOSMesa to $osmesa, as it's relatively big
141148 mkdir -p {$osmesa,$drivers}/lib/