prismlauncher-unwrapped: add patch to make MangoHud 0.8 work correctly (#384791)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
cmake,
|
||||
cmark,
|
||||
extra-cmake-modules,
|
||||
fetchpatch,
|
||||
gamemode,
|
||||
ghc_filesystem,
|
||||
jdk17,
|
||||
@@ -14,11 +15,9 @@
|
||||
stripJavaArchivesHook,
|
||||
tomlplusplus,
|
||||
zlib,
|
||||
|
||||
msaClientID ? null,
|
||||
gamemodeSupport ? stdenv.hostPlatform.isLinux,
|
||||
}:
|
||||
|
||||
let
|
||||
libnbtplusplus = fetchFromGitHub {
|
||||
owner = "PrismLauncher";
|
||||
@@ -27,11 +26,9 @@ let
|
||||
hash = "sha256-yy0q+bky80LtK1GWzz7qpM+aAGrOqLuewbid8WT1ilk=";
|
||||
};
|
||||
in
|
||||
|
||||
assert lib.assertMsg (
|
||||
gamemodeSupport -> stdenv.hostPlatform.isLinux
|
||||
) "gamemodeSupport is only available on Linux.";
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "prismlauncher-unwrapped";
|
||||
version = "9.2";
|
||||
@@ -87,6 +84,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
(lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "${placeholder "out"}/Applications/")
|
||||
];
|
||||
|
||||
patches = [
|
||||
# This patch allows Mangohud 0.8 to run correctly with Prism Launcher.
|
||||
# This should be removed on the next Prism Launcher release.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/PrismLauncher/PrismLauncher/commit/3295b0717a8c4805022eccb74fee2304361d8dab.patch";
|
||||
hash = "sha256-A7DrmI00dFUNZLoMFDfym7e5rSFg6V4/MjVxAnQwT6E=";
|
||||
})
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
Reference in New Issue
Block a user