nixpkgs/pkgs/applications/networking/browsers/google-chrome
Brandon Weeks 007af34263 google-chrome: add /run/opengl-driver/share/vulkan/icd.d/ to path
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.
2022-01-21 21:30:51 -08:00
..
default.nix google-chrome: add /run/opengl-driver/share/vulkan/icd.d/ to path 2022-01-21 21:30:51 -08:00