From 1cce751a519df086e5fe34d13208cf864a65e6f6 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 19 Jun 2021 10:52:06 -0400 Subject: [PATCH] mangohud: prefer wrapping with XDG_DATA_DIRS `XDG_DATA_DIRS` is what's used by Vulkan-Loader to search for MangoHud when installed. --- pkgs/tools/graphics/mangohud/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/mangohud/default.nix b/pkgs/tools/graphics/mangohud/default.nix index 98e60058abc4..a69f8775f3b5 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; {