mangohud: support 32bit mango app vulkan layer

This commit is contained in:
Kira Bruneau 2023-04-14 11:16:07 -04:00
parent 62bad427ff
commit 69ac4b600b

View File

@ -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 = ''