From 69ac4b600b63f72c01244ee8e9635673d63f04de Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Fri, 14 Apr 2023 11:16:07 -0400 Subject: mangohud: support 32bit mango app vulkan layer --- pkgs/tools/graphics/mangohud/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/tools/graphics/mangohud') diff --git a/pkgs/tools/graphics/mangohud/default.nix b/pkgs/tools/graphics/mangohud/default.nix index 82f2c65009a20..665118808c192 100644 --- a/pkgs/tools/graphics/mangohud/default.nix +++ b/pkgs/tools/graphics/mangohud/default.nix @@ -161,11 +161,16 @@ stdenv.mkDerivation (finalAttrs: { xorg.libXrandr ]; - # Support 32bit Vulkan applications by linking in 32bit Vulkan layer + # Support 32bit Vulkan applications by linking in 32bit Vulkan layers # This is needed for the same reason the 32bit OpenGL workaround is needed. postInstall = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") '' ln -s ${mangohud32}/share/vulkan/implicit_layer.d/MangoHud.json \ "$out/share/vulkan/implicit_layer.d/MangoHud.x86.json" + + ${lib.optionalString gamescopeSupport '' + ln -s ${mangohud32}/share/vulkan/implicit_layer.d/libMangoApp.json \ + "$out/share/vulkan/implicit_layer.d/libMangoApp.x86.json" + ''} ''; postFixup = '' -- cgit 1.4.1