mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
mangohud: support 32bit mango app vulkan layer
This commit is contained in:
parent
62bad427ff
commit
69ac4b600b
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user