mangohud: support Nvidia cards by adding OpenGL path

This commit is contained in:
Kira Bruneau 2021-06-19 19:10:46 -04:00
parent 839b933ef4
commit 0bf03aee89

View File

@ -26,6 +26,7 @@
, vulkan-loader
, libXNVCtrl
, wayland
, addOpenGLRunpath
}:
let
@ -130,9 +131,11 @@ in stdenv.mkDerivation rec {
"$out/share/vulkan/implicit_layer.d/MangoHud.x86.json"
'';
# Support overlaying Vulkan applications without requiring mangohud to be installed
# Support Nvidia cards by adding OpenGL path and support overlaying
# Vulkan applications without requiring MangoHud to be installed
postFixup = ''
wrapProgram "$out/bin/mangohud" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ addOpenGLRunpath.driverLink ]} \
--prefix XDG_DATA_DIRS : "$out/share"
'';