minecraft: drop (#440663)

authored by winter.bsky.social and committed by GitHub a3f5d832 a0f62afe

+1 -220
-1
nixos/tests/all-tests.nix
··· 913 metabase = runTest ./metabase.nix; 914 mihomo = runTest ./mihomo.nix; 915 mindustry = runTest ./mindustry.nix; 916 - minecraft = runTest ./minecraft.nix; 917 minecraft-server = runTest ./minecraft-server.nix; 918 minidlna = runTest ./minidlna.nix; 919 miniflux = runTest ./miniflux.nix;
··· 913 metabase = runTest ./metabase.nix; 914 mihomo = runTest ./mihomo.nix; 915 mindustry = runTest ./mindustry.nix; 916 minecraft-server = runTest ./minecraft-server.nix; 917 minidlna = runTest ./minidlna.nix; 918 miniflux = runTest ./miniflux.nix;
-40
nixos/tests/minecraft.nix
··· 1 - { pkgs, lib, ... }: 2 - { 3 - name = "minecraft"; 4 - meta = with lib.maintainers; { 5 - maintainers = [ nequissimus ]; 6 - }; 7 - 8 - nodes.client = 9 - { nodes, ... }: 10 - let 11 - user = nodes.client.config.users.users.alice; 12 - in 13 - { 14 - imports = [ 15 - ./common/user-account.nix 16 - ./common/x11.nix 17 - ]; 18 - 19 - environment.systemPackages = [ pkgs.minecraft ]; 20 - 21 - nixpkgs.config.allowUnfree = true; 22 - 23 - test-support.displayManager.auto.user = user.name; 24 - }; 25 - 26 - enableOCR = true; 27 - 28 - testScript = 29 - { nodes, ... }: 30 - let 31 - user = nodes.client.config.users.users.alice; 32 - in 33 - '' 34 - client.wait_for_x() 35 - client.execute("su - alice -c minecraft-launcher >&2 &") 36 - client.wait_for_text("Create a new Microsoft account") 37 - client.sleep(10) 38 - client.screenshot("launcher") 39 - ''; 40 - }
···
-172
pkgs/by-name/mi/minecraft/package.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - fetchurl, 5 - nixosTests, 6 - copyDesktopItems, 7 - makeDesktopItem, 8 - makeWrapper, 9 - wrapGAppsHook3, 10 - gobject-introspection, 11 - jre, # old or modded versions of the game may require Java 8 (https://aur.archlinux.org/packages/minecraft-launcher/#pinned-674960) 12 - xorg, 13 - zlib, 14 - nss, 15 - nspr, 16 - fontconfig, 17 - pango, 18 - cairo, 19 - expat, 20 - alsa-lib, 21 - cups, 22 - dbus, 23 - atk, 24 - gtk3-x11, 25 - gtk2-x11, 26 - gdk-pixbuf, 27 - glib, 28 - curl, 29 - freetype, 30 - libpulseaudio, 31 - libuuid, 32 - systemd, 33 - flite ? null, 34 - libXxf86vm ? null, 35 - }: 36 - let 37 - desktopItem = makeDesktopItem { 38 - name = "minecraft-launcher"; 39 - exec = "minecraft-launcher"; 40 - icon = "minecraft-launcher"; 41 - comment = "Official launcher for Minecraft, a sandbox-building game"; 42 - desktopName = "Minecraft Launcher"; 43 - categories = [ "Game" ]; 44 - }; 45 - 46 - envLibPath = lib.makeLibraryPath [ 47 - curl 48 - libpulseaudio 49 - systemd 50 - alsa-lib # needed for narrator 51 - flite # needed for narrator 52 - libXxf86vm # needed only for versions <1.13 53 - ]; 54 - 55 - libPath = lib.makeLibraryPath ( 56 - [ 57 - alsa-lib 58 - atk 59 - cairo 60 - cups 61 - dbus 62 - expat 63 - fontconfig 64 - freetype 65 - gdk-pixbuf 66 - glib 67 - pango 68 - gtk3-x11 69 - gtk2-x11 70 - nspr 71 - nss 72 - stdenv.cc.cc 73 - zlib 74 - libuuid 75 - ] 76 - ++ (with xorg; [ 77 - libX11 78 - libxcb 79 - libXcomposite 80 - libXcursor 81 - libXdamage 82 - libXext 83 - libXfixes 84 - libXi 85 - libXrandr 86 - libXrender 87 - libXtst 88 - libXScrnSaver 89 - ]) 90 - ); 91 - in 92 - stdenv.mkDerivation rec { 93 - pname = "minecraft-launcher"; 94 - 95 - version = "2.2.1441"; 96 - 97 - src = fetchurl { 98 - url = "https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_${version}.tar.gz"; 99 - sha256 = "03q579hvxnsh7d00j6lmfh53rixdpf33xb5zlz7659pvb9j5w0cm"; 100 - }; 101 - 102 - icon = fetchurl { 103 - url = "https://launcher.mojang.com/download/minecraft-launcher.svg"; 104 - sha256 = "0w8z21ml79kblv20wh5lz037g130pxkgs8ll9s3bi94zn2pbrhim"; 105 - }; 106 - 107 - nativeBuildInputs = [ 108 - makeWrapper 109 - wrapGAppsHook3 110 - copyDesktopItems 111 - gobject-introspection 112 - ]; 113 - 114 - sourceRoot = "."; 115 - 116 - dontWrapGApps = true; 117 - dontConfigure = true; 118 - dontBuild = true; 119 - 120 - installPhase = '' 121 - runHook preInstall 122 - 123 - mkdir -p $out/opt 124 - mv minecraft-launcher $out/opt 125 - 126 - install -D $icon $out/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg 127 - 128 - runHook postInstall 129 - ''; 130 - 131 - preFixup = '' 132 - patchelf \ 133 - --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \ 134 - --set-rpath '$ORIGIN/'":${libPath}" \ 135 - $out/opt/minecraft-launcher/minecraft-launcher 136 - patchelf \ 137 - --set-rpath '$ORIGIN/'":${libPath}" \ 138 - $out/opt/minecraft-launcher/libcef.so 139 - patchelf \ 140 - --set-rpath '$ORIGIN/'":${libPath}" \ 141 - $out/opt/minecraft-launcher/liblauncher.so 142 - ''; 143 - 144 - postFixup = '' 145 - # Do not create `GPUCache` in current directory 146 - makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \ 147 - --prefix LD_LIBRARY_PATH : ${envLibPath} \ 148 - --prefix PATH : ${lib.makeBinPath [ jre ]} \ 149 - --set JAVA_HOME ${lib.getBin jre} \ 150 - --chdir /tmp \ 151 - "''${gappsWrapperArgs[@]}" 152 - ''; 153 - 154 - desktopItems = [ desktopItem ]; 155 - 156 - meta = with lib; { 157 - description = "Official launcher for Minecraft, a sandbox-building game"; 158 - homepage = "https://minecraft.net"; 159 - maintainers = with maintainers; [ ryantm ]; 160 - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 161 - license = licenses.unfree; 162 - platforms = [ "x86_64-linux" ]; 163 - # "minecraft-launcher will fail on NixOS for minecraft versions >1.19 164 - # try prismlauncher or atlauncher instead" 165 - broken = true; 166 - }; 167 - 168 - passthru = { 169 - tests = { inherit (nixosTests) minecraft; }; 170 - updateScript = ./update.sh; 171 - }; 172 - }
···
-7
pkgs/by-name/mi/minecraft/update.sh
··· 1 - #!/usr/bin/env nix-shell 2 - #!nix-shell -i bash -p curl jq common-updater-scripts 3 - 4 - set -eu -o pipefail 5 - 6 - version=$(curl -s 'https://launchermeta.mojang.com/v1/products/launcher/6f083b80d5e6fabbc4236f81d0d8f8a350c665a9/linux.json' | jq -r '."launcher-core"[0].version.name') 7 - update-source-version minecraft "${version}"
···
+1
pkgs/top-level/aliases.nix
··· 1602 mihomo-party = throw "'mihomo-party' has been removed due to upstream license violation"; # Added 2025-08-20 1603 mikutter = throw "'mikutter' has been removed because the package was broken and had no maintainers"; # Added 2024-10-01 1604 mime-types = mailcap; # Added 2022-01-21 1605 minetest = luanti; # Added 2024-11-11 1606 minetestclient = luanti-client; # Added 2024-11-11 1607 minetestserver = luanti-server; # Added 2024-11-11
··· 1602 mihomo-party = throw "'mihomo-party' has been removed due to upstream license violation"; # Added 2025-08-20 1603 mikutter = throw "'mikutter' has been removed because the package was broken and had no maintainers"; # Added 2024-10-01 1604 mime-types = mailcap; # Added 2022-01-21 1605 + minecraft = throw "'minecraft' has been removed because the package was broken. Consider using 'prismlauncher' instead"; # Added 2025-09-06 1606 minetest = luanti; # Added 2024-11-11 1607 minetestclient = luanti-client; # Added 2024-11-11 1608 minetestserver = luanti-server; # Added 2024-11-11