|
3 | 3 | clangStdenv, |
4 | 4 | stdenv, |
5 | 5 | fetchFromGitHub, |
6 | | - fetchpatch, |
7 | 6 | cmake, |
8 | 7 | pkg-config, |
9 | 8 | openssl, |
|
23 | 22 | xdg-utils, |
24 | 23 | }: |
25 | 24 |
|
26 | | -# gcc doesn't support __has_feature |
| 25 | +# Bionic libc part doesn't compile with GCC |
27 | 26 | clangStdenv.mkDerivation (finalAttrs: { |
28 | 27 | pname = "mcpelauncher-client"; |
29 | | - version = "1.1.2-qt6"; |
| 28 | + version = "1.2.0-qt6"; |
30 | 29 |
|
31 | 30 | # NOTE: check mcpelauncher-ui-qt when updating |
32 | 31 | src = fetchFromGitHub { |
33 | 32 | owner = "minecraft-linux"; |
34 | 33 | repo = "mcpelauncher-manifest"; |
35 | 34 | tag = "v${finalAttrs.version}"; |
36 | 35 | fetchSubmodules = true; |
37 | | - hash = "sha256-PmCq6Zgtp17UV0kIbNouFwj/DMiTqwE31+tTb2LUp5o="; |
| 36 | + hash = "sha256-SyIiBUZCGcV4NFD7IcQv8YdRkDGhkBeqE0qVsKp+44Y="; |
38 | 37 | }; |
39 | 38 |
|
40 | | - patches = [ |
41 | | - ./dont_download_glfw_client.patch |
42 | | - # These are upcoming changes that have been merged upstream. Once these get in a release, remove these patches. |
43 | | - (fetchpatch { |
44 | | - url = "https://github.com/minecraft-linux/game-window/commit/feea8c0e0720eea7093ed95745c17f36d6c40671.diff"; |
45 | | - hash = "sha256-u4uveoKwwklEooT+i+M9kZ0PshjL1IfWhlltmulsQJo="; |
46 | | - stripLen = 1; |
47 | | - extraPrefix = "game-window/"; |
48 | | - }) |
49 | | - (fetchpatch { |
50 | | - url = "https://github.com/minecraft-linux/mcpelauncher-client/commit/db9c31e46d7367867c85a0d0aba42c8144cdf795.diff"; |
51 | | - hash = "sha256-za/9oZYwKCYyZ1BXQ/zeEjRy81B1NpTlPHEfWAOtzHk="; |
52 | | - stripLen = 1; |
53 | | - extraPrefix = "mcpelauncher-client/"; |
54 | | - }) |
55 | | - ]; |
| 39 | + patches = [ ./dont_download_glfw_client.patch ]; |
56 | 40 |
|
57 | 41 | # Path hard-coded paths. |
58 | 42 | postPatch = lib.optionalString stdenv.isLinux '' |
59 | 43 | substituteInPlace mcpelauncher-client/src/jni/main_activity.cpp \ |
60 | 44 | --replace-fail /usr/bin/xdg-open ${xdg-utils}/bin/xdg-open \ |
61 | | - --replace-fail /usr/bin/zenity ${zenity}/bin/zenity |
| 45 | + --replace-fail /usr/bin/zenity ${lib.getExe zenity} |
62 | 46 |
|
63 | 47 | substituteInPlace file-picker/src/file_picker_zenity.cpp \ |
64 | | - --replace-fail /usr/bin/zenity ${zenity}/bin/zenity |
| 48 | + --replace-fail 'EXECUTABLE_NAME = "zenity"' 'EXECUTABLE_NAME = "${lib.getExe zenity}"' |
65 | 49 | ''; |
66 | 50 |
|
67 | 51 | # FORTIFY_SOURCE breaks libc_shim and the project will fail to compile |
@@ -125,6 +109,7 @@ clangStdenv.mkDerivation (finalAttrs: { |
125 | 109 | maintainers = with lib.maintainers; [ |
126 | 110 | aleksana |
127 | 111 | morxemplum |
| 112 | + phanirithvij |
128 | 113 | ]; |
129 | 114 | mainProgram = "mcpelauncher-client"; |
130 | 115 | platforms = lib.platforms.unix; |
|
0 commit comments