summary refs log tree commit diff
path: root/pkgs/build-support/build-fhs-userenv-bubblewrap
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2022-03-21 11:45:13 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-03-24 12:53:39 -0700
commit44afbd443220b96df40591092f1a556aaa1c26c3 (patch)
tree997d308fdc1d3696fe6ac58ab7e3b88b109a2529 /pkgs/build-support/build-fhs-userenv-bubblewrap
parent1af1228c478966b9d01709b34d8976d069805922 (diff)
downloadnixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar.gz
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar.bz2
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar.lz
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar.xz
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.tar.zst
nixpkgs-44afbd443220b96df40591092f1a556aaa1c26c3.zip
buildFHSUserEnvBubblewrap: append graphics share to XDG_DATA_DIR
Diffstat (limited to 'pkgs/build-support/build-fhs-userenv-bubblewrap')
-rw-r--r--pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix
index 93292122b73..a36008d752b 100644
--- a/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix
+++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/env.nix
@@ -59,6 +59,9 @@ let
     export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
     export TZDIR='/etc/zoneinfo'
 
+    # XDG_DATA_DIRS is used by pressure-vessel (steam proton) and vulkan loaders to find the corresponding icd
+    export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/run/opengl-driver/share:/run/opengl-driver-32/share
+
     # Force compilers and other tools to look in default search paths
     unset NIX_ENFORCE_PURITY
     export NIX_CC_WRAPPER_TARGET_HOST_${stdenv.cc.suffixSalt}=1