vulkan-loader: fix search paths in suid processes

Fixes #22990
This commit is contained in:
Benjamin Saunders
2017-02-20 01:39:48 +03:00
committed by Nikolay Amiantov
parent a2b8ceb83a
commit bfdfd6c3df
2 changed files with 55 additions and 2 deletions
@@ -1,6 +1,6 @@
{ stdenv, fetchgit, fetchFromGitHub, cmake, pkgconfig, git, python3,
python3Packages, glslang, spirv-tools, x11, libxcb, libXrandr,
libXext, wayland }:
libXext, wayland, mesa_noglu }:
let
version = "1.0.39.1";
@@ -23,9 +23,10 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_WSI_MIR_SUPPORT=OFF"
"-DFALLBACK_DATA_DIRS=${mesa_noglu.driverLink}/share:/usr/local/share:/usr/share"
];
patches = [ ./use-xdg-paths.patch ];
patches = [ ./use-xdg-paths.patch ./fallback-paths.patch ];
outputs = [ "out" "dev" "demos" ];