From eb8cdd126eadf2210c7af92e5f50daf0df8b5de6 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 20 Apr 2025 11:52:12 +0200 Subject: [PATCH] prismlauncher-unwrapped: backport Qt 6.9 fix for darwin This only affects darwin builds, but I decided to apply the backport unconditionally as it's just a one-line change. https://github.com/PrismLauncher/PrismLauncher/pull/3622 https://github.com/NixOS/nixpkgs/issues/400119 Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/pr/prismlauncher-unwrapped/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/pr/prismlauncher-unwrapped/package.nix b/pkgs/by-name/pr/prismlauncher-unwrapped/package.nix index 3e6f66e430a6..d05ab5abcb56 100644 --- a/pkgs/by-name/pr/prismlauncher-unwrapped/package.nix +++ b/pkgs/by-name/pr/prismlauncher-unwrapped/package.nix @@ -5,7 +5,7 @@ cmake, cmark, extra-cmake-modules, - fetchpatch, + fetchpatch2, gamemode, ghc_filesystem, jdk17, @@ -45,6 +45,16 @@ stdenv.mkDerivation (finalAttrs: { ln -s ${libnbtplusplus} source/libraries/libnbtplusplus ''; + patches = [ + # https://github.com/PrismLauncher/PrismLauncher/pull/3622 + # https://github.com/NixOS/nixpkgs/issues/400119 + (fetchpatch2 { + name = "fix-qt6.9-compatibility.patch"; + url = "https://github.com/PrismLauncher/PrismLauncher/commit/8bb9b168fb996df9209e1e34be854235eda3d42a.diff"; + hash = "sha256-hOqWBrUrVUhMir2cfc10gu1i8prdNxefTyr7lH6KA2c="; + }) + ]; + nativeBuildInputs = [ cmake ninja