mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
mangohud: support Nvidia cards by adding OpenGL path
This commit is contained in:
parent
839b933ef4
commit
0bf03aee89
@ -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"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user