3
0
Fork 0
forked from mirrors/nixpkgs

mesa_noglu: Fix search paths for libvulkan_intel.so

This commit is contained in:
Moritz Ulrich 2016-11-21 21:14:19 +01:00
parent de2f9d6719
commit bc2fb9b2fe
No known key found for this signature in database
GPG key ID: 45833CACBC407FA7

View file

@ -132,12 +132,17 @@ stdenv.mkDerivation {
$out/lib/vdpau \
$out/lib/bellagio \
$out/lib/libxatracker* \
$out/lib/libvulkan_* \
$out/lib/libvulkan_*
# move share/vulkan/icd.d/
mv $out/share/ $drivers/
# Update search path used by Vulkan (it's pointing to $out but
# drivers are in $drivers)
for js in $drivers/share/vulkan/icd.d/*.json; do
substituteInPlace "$js" --replace "$out" "$drivers"
done
mv $out/lib/dri/* $drivers/lib/dri
mv $out/lib/dri/* $drivers/lib/dri # */
rmdir "$out/lib/dri"
# move libOSMesa to $osmesa, as it's relatively big