diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2023-04-14 11:16:07 -0400 |
---|---|---|
committer | Kira Bruneau <kira.bruneau@pm.me> | 2023-04-14 11:48:59 -0400 |
commit | 69ac4b600b63f72c01244ee8e9635673d63f04de (patch) | |
tree | 7d37aca598db795dff7ef81ad67db667481f0eda /pkgs/tools/graphics | |
parent | 62bad427ffb0104cf5c577ca45557f7d3bce7faf (diff) |
mangohud: support 32bit mango app vulkan layer
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/mangohud/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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 = '' |