[Nix-dev] How to enable Vulkan on Intel?

Profpatsch mail at profpatsch.de
Mon Nov 21 12:53:56 CET 2016


On 16-11-21 11:00am, Moritz Ulrich wrote:
> /nix/store/d0n7lg9xg16wlgs6msgfjwl1fdgsj3af-opengl-drivers/lib/libvulkan_intel.so
> /nix/store/948c5kl4snh9jxcq8n8is4ikb1p0hh44-vulkan-loader-1.0.26.0/lib/libvulkan.so
> /nix/store/6x9lqyyk48a4x0w5n806r2h0416kn3cb-mesa-noglu-13.0.1-drivers/lib/libvulkan_intel.so
> 
> The .so my current booted system is using is the following:
> 
> % ls /run/opengl-driver/lib/libvulkan_intel.so
> /run/opengl-driver/lib/libvulkan_intel.so -> /nix/store/aqdbc42g8r6l3bm47c8pa2azim8icqbq-mesa-drivers+txc-13.0.1/lib/libvulkan_intel.so*

So, the correct way is to patch the derivation that generates
/run/opengl-driver/share/vulkan/icd.d/intel_icd.x86_64.json
so that the link in that json points to
/nix/store/d0n7lg9xg16wlgs6msgfjwl1fdgsj3af-opengl-drivers/lib/libvulkan_intel.so

Depends on how the json is generated, preferrably adding the
path to a configure variable, alternatively using sed or similar.

-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.


More information about the nix-dev mailing list