Change:
<ins> #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq gnugrep common-updater-scripts set -eu -o pipefail version=$(curl -s 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=minecraft-launcher' | jq '.results[0].Version' | grep -Po '[.d]*(?=-)') update-source-version minecraft "$version" </ins>

Discussion:
Describe the bug Upon pressing the "Play" button in the Minecraft launcher, the button is then stuck in the "Preparing..." phase. To Reproduce Steps to reproduce the behavior: the launcher in if you haven't logged in yet Play Additional context This is what is shown in the log: From what I have seen on the Internet, this happens when the launcher is outdated, so there is that. I will tag since he was the last one who fixed an issue related to the launcher. EDIT: might be a good time to mention that I am nearly sure this isn't an issue with my computer. Just a few hours ago, I was playing Minecraft just fine. Now it's giving me this error, without generation changes nor reboots nor whatever. I even tried deleting the entire Minecraft folder and rebooted to get a fresh install, but it's still happening.
Yeah I can't launch either, and it doesn't seem to be a NixOS-specific problem, there's many more people having the same problem: , also a bug report at (which was closed with Invalid??) Anyways from the thread there it seems to indicate we finally need to update our launcher. The one we use in NixOS is like at least 4 years old, even though a new one has been release for a while.
The officially provided .deb file includes the icon but I can't find a URL that would point to a fixed version of it (which is available for the general package, but that does not include the icons) - we can't add copyrighted material to the repo or have the build fail because a new version is released and the hash doesn't match anymore, and I would like to not have to pull the AUR repo. cc
I previously sent unpolished derivations for both the new Minecraft launcher and a launcher for running Minecraft-PE to 2 months ago. Here's a link to an archive for the derivations: (Note that it's is a despite the filename) If you are curious about the Minecraft-PE launcher it essentially uses the x86 version of Minecraft-PE so that you can run it. This is useful if you want to use the Bedrock version of the game. If you are unaware there are two main ecosystems for Minecraft, Java Edition (the original) and Bedrock Edition (multiplatform W10, Android, iOS, switch, xbox one, etc).

A bit off-topic - MultiMC launcher seems to work fine (and I consider it a better launcher :D). EDIT: I meant compared to the official launcher of course!
Right. This is interesting. If you are making binary packages and putting them on a repo, you are technically breaking copyright law. So, that flatpak thing? Illegal. Avoid it. I just don't have the heart to forward it to enforcement. We could totally put the icon somewhere so you can grab it and use it.
Perhaps you meant to comment in I'm just noticing that while nixpkgs doesn't use the Flatpak thing, we still had the intention of providing a prebuilt package for the launcher. Because of however, this never actually worked. I'll make sure that in above PR we switch from as a license to such that no altered version will ever be provided by the build servers, so users will continue to have to let their machine patch it locally. Having the icon at a fixed url would be great yeah (preferably a versioned url in case it ever changes), or even included in (probably won't work well because of its structure though). Nice to have someone from the Mojang team here :D
Having the fetchable at a fixed url would be great also.