From 2c2037174877e4896ad407921ba39957c0b4b635 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 8 Mar 2025 23:45:47 +0800 Subject: [PATCH 1/3] mcpelauncher-client: 1.1.2-qt6 -> 1.2.0-qt6 Diff: https://github.com/minecraft-linux/mcpelauncher-manifest/compare/v1.1.2-qt6...v1.2.0-qt6 Changelog: https://github.com/minecraft-linux/mcpelauncher-manifest/releases/tag/v1.2.0-qt6 --- .../mc/mcpelauncher-client/package.nix | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/mc/mcpelauncher-client/package.nix b/pkgs/by-name/mc/mcpelauncher-client/package.nix index dba7dc1539e9..0c2efbb4a994 100644 --- a/pkgs/by-name/mc/mcpelauncher-client/package.nix +++ b/pkgs/by-name/mc/mcpelauncher-client/package.nix @@ -3,7 +3,6 @@ clangStdenv, stdenv, fetchFromGitHub, - fetchpatch, cmake, pkg-config, openssl, @@ -23,10 +22,10 @@ xdg-utils, }: -# gcc doesn't support __has_feature +# Bionic libc part doesn't compile with GCC clangStdenv.mkDerivation (finalAttrs: { pname = "mcpelauncher-client"; - version = "1.1.2-qt6"; + version = "1.2.0-qt6"; # NOTE: check mcpelauncher-ui-qt when updating src = fetchFromGitHub { @@ -34,34 +33,19 @@ clangStdenv.mkDerivation (finalAttrs: { repo = "mcpelauncher-manifest"; tag = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-PmCq6Zgtp17UV0kIbNouFwj/DMiTqwE31+tTb2LUp5o="; + hash = "sha256-SyIiBUZCGcV4NFD7IcQv8YdRkDGhkBeqE0qVsKp+44Y="; }; - patches = [ - ./dont_download_glfw_client.patch - # These are upcoming changes that have been merged upstream. Once these get in a release, remove these patches. - (fetchpatch { - url = "https://github.com/minecraft-linux/game-window/commit/feea8c0e0720eea7093ed95745c17f36d6c40671.diff"; - hash = "sha256-u4uveoKwwklEooT+i+M9kZ0PshjL1IfWhlltmulsQJo="; - stripLen = 1; - extraPrefix = "game-window/"; - }) - (fetchpatch { - url = "https://github.com/minecraft-linux/mcpelauncher-client/commit/db9c31e46d7367867c85a0d0aba42c8144cdf795.diff"; - hash = "sha256-za/9oZYwKCYyZ1BXQ/zeEjRy81B1NpTlPHEfWAOtzHk="; - stripLen = 1; - extraPrefix = "mcpelauncher-client/"; - }) - ]; + patches = [ ./dont_download_glfw_client.patch ]; # Path hard-coded paths. postPatch = lib.optionalString stdenv.isLinux '' substituteInPlace mcpelauncher-client/src/jni/main_activity.cpp \ --replace-fail /usr/bin/xdg-open ${xdg-utils}/bin/xdg-open \ - --replace-fail /usr/bin/zenity ${zenity}/bin/zenity + --replace-fail /usr/bin/zenity ${lib.getExe zenity} substituteInPlace file-picker/src/file_picker_zenity.cpp \ - --replace-fail /usr/bin/zenity ${zenity}/bin/zenity + --replace-fail 'EXECUTABLE_NAME = "zenity"' 'EXECUTABLE_NAME = "${lib.getExe zenity}"' ''; # FORTIFY_SOURCE breaks libc_shim and the project will fail to compile From 69f2c322627098189d1492063c0afcee0f442f47 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 8 Mar 2025 23:49:35 +0800 Subject: [PATCH 2/3] mcpelauncher-ui-qt: 1.1.2-qt6 -> 1.2.0-qt6 Diff: https://github.com/minecraft-linux/mcpelauncher-ui-manifest/compare/v1.1.2-qt6...v1.2.0-qt6 Changelog: https://github.com/minecraft-linux/mcpelauncher-ui-manifest/releases/tag/v1.2.0-qt6 --- pkgs/by-name/mc/mcpelauncher-ui-qt/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/mc/mcpelauncher-ui-qt/package.nix b/pkgs/by-name/mc/mcpelauncher-ui-qt/package.nix index 6867af4464ee..81352635f66d 100644 --- a/pkgs/by-name/mc/mcpelauncher-ui-qt/package.nix +++ b/pkgs/by-name/mc/mcpelauncher-ui-qt/package.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: { repo = "mcpelauncher-ui-manifest"; tag = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-R9wE1lS7x1IIPgVahXjF5Yg2ca+GsiQuF41pWf2edXY="; + hash = "sha256-333PwfBWhdfJSi1XrJNHidMYZrzSReb8s4VxBASFQ6Q="; }; patches = [ From 4e8c49719b2c632f2d19ad2d5318abedf085c943 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 9 Mar 2025 22:07:04 +0800 Subject: [PATCH 3/3] mcpelauncher-client: add phanirithvij to maintainers --- pkgs/by-name/mc/mcpelauncher-client/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/mc/mcpelauncher-client/package.nix b/pkgs/by-name/mc/mcpelauncher-client/package.nix index 0c2efbb4a994..df67e45577c5 100644 --- a/pkgs/by-name/mc/mcpelauncher-client/package.nix +++ b/pkgs/by-name/mc/mcpelauncher-client/package.nix @@ -109,6 +109,7 @@ clangStdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ aleksana morxemplum + phanirithvij ]; mainProgram = "mcpelauncher-client"; platforms = lib.platforms.unix;