Skip to content

Commit fa57e93

Browse files
authored
prismlauncher-unwrapped: add patch to make MangoHud 0.8 work correctly (NixOS#384791)
2 parents 97ea4d2 + c1efe25 commit fa57e93

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pkgs/by-name/pr/prismlauncher-unwrapped/package.nix

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
cmake,
66
cmark,
77
extra-cmake-modules,
8+
fetchpatch,
89
gamemode,
910
ghc_filesystem,
1011
jdk17,
@@ -14,11 +15,9 @@
1415
stripJavaArchivesHook,
1516
tomlplusplus,
1617
zlib,
17-
1818
msaClientID ? null,
1919
gamemodeSupport ? stdenv.hostPlatform.isLinux,
2020
}:
21-
2221
let
2322
libnbtplusplus = fetchFromGitHub {
2423
owner = "PrismLauncher";
@@ -27,11 +26,9 @@ let
2726
hash = "sha256-yy0q+bky80LtK1GWzz7qpM+aAGrOqLuewbid8WT1ilk=";
2827
};
2928
in
30-
3129
assert lib.assertMsg (
3230
gamemodeSupport -> stdenv.hostPlatform.isLinux
3331
) "gamemodeSupport is only available on Linux.";
34-
3532
stdenv.mkDerivation (finalAttrs: {
3633
pname = "prismlauncher-unwrapped";
3734
version = "9.2";
@@ -87,6 +84,15 @@ stdenv.mkDerivation (finalAttrs: {
8784
(lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "${placeholder "out"}/Applications/")
8885
];
8986

87+
patches = [
88+
# This patch allows Mangohud 0.8 to run correctly with Prism Launcher.
89+
# This should be removed on the next Prism Launcher release.
90+
(fetchpatch {
91+
url = "https://github.com/PrismLauncher/PrismLauncher/commit/3295b0717a8c4805022eccb74fee2304361d8dab.patch";
92+
hash = "sha256-A7DrmI00dFUNZLoMFDfym7e5rSFg6V4/MjVxAnQwT6E=";
93+
})
94+
];
95+
9096
doCheck = true;
9197

9298
dontWrapQtApps = true;

0 commit comments

Comments
 (0)