8 stdenvNoCC.mkDerivation (finalAttrs: {
10 version = "1.20.2.234";
14 mcVersion = lib.versions.pad 3 finalAttrs.version;
15 buildNum = builtins.elemAt (lib.splitVersion finalAttrs.version) 3;
18 url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${mcVersion}-${buildNum}.jar";
19 hash = "sha256-fR7Dq09iFGVXodQjrS7Hg4NcrKPJbNg0hexU520JC6c=";
25 install -D $src $out/share/papermc/papermc.jar
27 makeWrapper ${lib.getExe jre} "$out/bin/minecraft-server" \
28 --append-flags "-jar $out/share/papermc/papermc.jar nogui"
38 preferLocalBuild = true;
39 allowSubstitutes = false;
42 description = "High-performance Minecraft Server";
43 homepage = "https://papermc.io/";
44 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
45 license = lib.licenses.gpl3Only;
46 platforms = lib.platforms.unix;
47 maintainers = with lib.maintainers; [ aaronjanse neonfuz ];
48 mainProgram = "minecraft-server";