mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
007af34263
NixOS stores ICDs at /run/opengl-driver/share/vulkan/icd.d/. Because Chrome ships its own vulkan-loader and doesn't use the NixOS system vulkan-loader, Chrome won't search the /run/opengl-driver directory withou either adding it to the path or patching Chrome's libvulkan.so.1. This change adds "${addOpenGLRunpath.driverLink}/share" unconditionally to the path. addOpenGLRunpath is the same module that NixOS system vulkan-loader uses as the path. Tested by running `VK_LOADER_DEBUG=all google-chrome-unstable --enable-features=Vulkan` and verifying Vulkan is enabled with chrome://gpu. |
||
---|---|---|
.. | ||
default.nix |