From 2282f6f5e1bfcb6acd550b6e889525daab8f0ec9 Mon Sep 17 00:00:00 2001 From: Majiir Paktu Date: Sun, 17 Mar 2024 16:42:14 -0400 Subject: [PATCH] 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. --- pkgs/games/papermc/derivation.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/papermc/derivation.nix b/pkgs/games/papermc/derivation.nix index f244031f0590..d6bce24443e6 100644 --- a/pkgs/games/papermc/derivation.nix +++ b/pkgs/games/papermc/derivation.nix @@ -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; };