about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch')
-rw-r--r--nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch b/nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch
new file mode 100644
index 000000000000..3c0f6908617f
--- /dev/null
+++ b/nixpkgs/pkgs/tools/graphics/mangohud/opengl32-nix-workaround.patch
@@ -0,0 +1,12 @@
+diff --git a/bin/mangohud.in b/bin/mangohud.in
+index eadce2d..e7b1aa4 100755
+--- a/bin/mangohud.in
++++ b/bin/mangohud.in
+@@ -23,6 +23,6 @@ fi
+ # figure out whether the 32 or 64 bit version should be used, and will search
+ # for it in the correct directory
+ LD_PRELOAD="${LD_PRELOAD}:${MANGOHUD_LIB_NAME}"
+-LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@ld_libdir_mangohud@"
++LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@ld_libdir_mangohud@:@mangohud32@/lib/mangohud"
+ 
+ exec env MANGOHUD=1 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" LD_PRELOAD="${LD_PRELOAD}" "$@"