papermc: revert to old URL construction

This uses two bindings to build the URL instead of three. This allows
the version string to differ from the papermc URL format, at the loss
of... nothing, as far as I can tell. My motivation for reverting the
change is to reduce the number of references to 'version', since it
requires special handling to handle overrides correctly.
This commit is contained in:
Majiir Paktu 2024-03-17 16:42:14 -04:00
parent 9754a5b029
commit 2282f6f5e1

View File

@ -11,7 +11,7 @@ stdenvNoCC.mkDerivation {
buildNum = builtins.elemAt version-split 1;
in
fetchurl {
url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${version}.jar";
url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${mcVersion}-${buildNum}.jar";
inherit hash;
};