This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/minecraft/papermc/jar.nix

8 lines
291 B
Nix
Raw Permalink Normal View History

2022-09-28 19:14:31 +00:00
{fetchurl}: let
versionInfo = builtins.fromJSON (builtins.readFile ./paper.json);
in
fetchurl {
url = "https://papermc.io/api/v2/projects/paper/versions/${versionInfo.version}/builds/${toString versionInfo.build}/downloads/${versionInfo.name}";
inherit (versionInfo) sha256;
}