diff options
author | Ambroz Bizjak <abizjak.pro@gmail.com> | 2019-06-08 20:20:31 +0200 |
---|---|---|
committer | Ambroz Bizjak <abizjak.pro@gmail.com> | 2019-06-08 20:23:54 +0200 |
commit | bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7 (patch) | |
tree | c9fe32c6d4fce2babec31cae5ee316edbc62eca8 /pkgs/development/libraries/vulkan-loader/default.nix | |
parent | 70de27bbb4758038e5b87f725d964eefda4898e1 (diff) | |
download | nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar.gz nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar.bz2 nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar.lz nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar.xz nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.tar.zst nixpkgs-bc96146e75fb68dcc1d0e4f779e75fc99e4a05b7.zip |
vulkan-loader: Always include /run/opengl-driver(-32)/share in search path.
Even though FALLBACK_DATA_DIRS is set to include this, it only applies when XDG_DATA_DIRS is not defined, so the NixOS opengl.nix module still had to include these in the search path. Use a simple patch to force a default search path, consulted after all other search paths. Note that FALLBACK_DATA_DIRS is no longer set, and the default (/usr/local/share:/usr/share) applies.
Diffstat (limited to 'pkgs/development/libraries/vulkan-loader/default.nix')
-rw-r--r-- | pkgs/development/libraries/vulkan-loader/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/vulkan-loader/default.nix b/pkgs/development/libraries/vulkan-loader/default.nix index 891ad373e02..a44e91e1bf5 100644 --- a/pkgs/development/libraries/vulkan-loader/default.nix +++ b/pkgs/development/libraries/vulkan-loader/default.nix @@ -21,8 +21,10 @@ stdenv.mkDerivation rec { buildInputs = [ cmake python3 xlibsWrapper libxcb libXrandr libXext wayland ]; enableParallelBuilding = true; + patches = [ ./system-search-path.patch ]; + cmakeFlags = [ - "-DFALLBACK_DATA_DIRS=${addOpenGLRunpath.driverLink}/share:/usr/local/share:/usr/share" + "-DSYSTEM_SEARCH_PATH=${addOpenGLRunpath.driverLink}/share" "-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}" ]; |