about summary refs log tree commit diff
path: root/pkgs/tools/graphics/mangohud
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2021-06-19 10:52:06 -0400
committerKira Bruneau <kira.bruneau@pm.me>2021-06-19 16:33:53 -0400
commit1cce751a519df086e5fe34d13208cf864a65e6f6 (patch)
tree54ca3134050b2d06a16abd9457f3b5461a88c782 /pkgs/tools/graphics/mangohud
parent1c5ba73b66c81db3378218dbb7bd098c5c751568 (diff)
mangohud: prefer wrapping with XDG_DATA_DIRS
`XDG_DATA_DIRS` is what's used by Vulkan-Loader to search for MangoHud
when installed.
Diffstat (limited to 'pkgs/tools/graphics/mangohud')
-rw-r--r--pkgs/tools/graphics/mangohud/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/tools/graphics/mangohud/default.nix b/pkgs/tools/graphics/mangohud/default.nix
index 98e60058abc48..a69f8775f3b50 100644
--- a/pkgs/tools/graphics/mangohud/default.nix
+++ b/pkgs/tools/graphics/mangohud/default.nix
@@ -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; {