1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

mesa: patch vulkan manifests when any driver is enabled

This commit is contained in:
David McFarland 2017-04-08 19:57:02 -03:00 committed by Tuomas Tynkkynen
parent 35eb784bf2
commit f2655dd0c7

View file

@ -187,7 +187,7 @@ stdenv.mkDerivation {
# set the default search path for DRI drivers; used e.g. by X server
substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}"
'' + optionalString (builtins.elem "intel" vulkanDrivers) ''
'' + optionalString (vulkanDrivers != []) ''
# move share/vulkan/icd.d/
mv $out/share/ $drivers/
# Update search path used by Vulkan (it's pointing to $out but