mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
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:
parent
9754a5b029
commit
2282f6f5e1
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user