Commit 8923784c authored by Morxemplum's avatar Morxemplum
Browse files

mcpelauncher-ui-qt: fix build on Qt 6.9

parent 507b6302
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  mcpelauncher-client,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  pkg-config,
  zlib,
@@ -27,6 +28,16 @@ stdenv.mkDerivation (finalAttrs: {

  patches = [
    ./dont_download_glfw_ui.patch
    # Qt 6.9 no longer implicitly converts non-char types (such as booleans) to
    # construct a QChar. This leads to a build failure with Qt 6.9. Upstream
    # has merged a patch, but has not yet formalized it through a release, so
    # we must fetch it manually. Remove this fetch on the next point release.
    (fetchpatch {
      url = "https://github.com/minecraft-linux/mcpelauncher-ui-qt/commit/0526b1fd6234d84f63b216bf0797463f41d2bea0.diff";
      hash = "sha256-vL5iqbs50qVh4BKDxTOpCwFQWO2gLeqrVLfnpeB6Yp8=";
      stripLen = 1;
      extraPrefix = "mcpelauncher-ui-qt/";
    })
  ];

  nativeBuildInputs = [