mangohud: prefer wrapping with XDG_DATA_DIRS

`XDG_DATA_DIRS` is what's used by Vulkan-Loader to search for MangoHud
when installed.
This commit is contained in:
Kira Bruneau 2021-06-19 10:52:06 -04:00
parent 1c5ba73b66
commit 1cce751a51

View file

@ -116,8 +116,7 @@ stdenv.mkDerivation rec {
# Support overlaying Vulkan applications without requiring mangohud to be installed
postFixup = ''
wrapProgram "$out/bin/mangohud" \
--prefix VK_LAYER_PATH : "$out/share/vulkan/implicit_layer.d" \
--prefix VK_INSTANCE_LAYERS : VK_LAYER_MANGOHUD_overlay
--prefix XDG_DATA_DIRS : "$out/share"
'';
meta = with lib; {