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/default.nix
Charlotte 🦝 Delenk 73b20bd770
All checks were successful
Hydra emoji-volpeon-bunhd-flip Hydra build #49339 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-bunhd-flip
Hydra emoji-caro Hydra build #49340 of nix-packages:x86_64-linux-master-pr266:emoji-caro
Hydra emoji-volpeon-blobfox-flip Hydra build #49342 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-blobfox-flip
Hydra kubo Hydra build #49343 of nix-packages:x86_64-linux-master-pr266:kubo
Hydra kreative-square Hydra build #49344 of nix-packages:x86_64-linux-master-pr266:kreative-square
Hydra python-instagram Hydra build #49345 of nix-packages:x86_64-linux-master-pr266:python-instagram
Hydra python-simplefuzzyset Hydra build #49347 of nix-packages:x86_64-linux-master-pr266:python-simplefuzzyset
Hydra emoji-volpeon-blobfox Hydra build #49348 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-blobfox
Hydra woodpecker-cli Hydra build #49349 of nix-packages:x86_64-linux-master-pr266:woodpecker-cli
Hydra python-plover-stroke Hydra build #49350 of nix-packages:x86_64-linux-master-pr266:python-plover-stroke
Hydra plover-plugin-rkb1-hid Hydra build #49351 of nix-packages:x86_64-linux-master-pr266:plover-plugin-rkb1-hid
Hydra wordpress-plugins.modern-images-wp Hydra build #49352 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.modern-images-wp
Hydra wordpress-plugins.google-sitemap-generator Hydra build #49353 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.webp-express Hydra build #49354 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.webp-express
Hydra wordpress-plugins.ilab-media-tools Hydra build #49355 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.ilab-media-tools
Hydra wordpress-plugins.hum Hydra build #49356 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.hum
Hydra wordpress-plugins.syndication-links Hydra build #49358 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.syndication-links
Hydra plover-plugins-manager Hydra build #49359 of nix-packages:x86_64-linux-master-pr266:plover-plugins-manager
Hydra wordpress-plugins.webmention Hydra build #49360 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.webmention
Hydra wordpress-plugins.indieweb Hydra build #49361 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.indieweb
Hydra emoji-lotte Hydra build #49362 of nix-packages:x86_64-linux-master-pr266:emoji-lotte
Hydra lotte-art Hydra build #49363 of nix-packages:x86_64-linux-master-pr266:lotte-art
Hydra python-mautrix Hydra build #49364 of nix-packages:x86_64-linux-master-pr266:python-mautrix
Hydra wordpress-plugins.nodeinfo Hydra build #49365 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.nodeinfo
Hydra woodpecker-agent Hydra build #49366 of nix-packages:x86_64-linux-master-pr266:woodpecker-agent
Hydra fcitx5 Hydra build #49367 of nix-packages:x86_64-linux-master-pr266:fcitx5
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #49368 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.indieweb-post-kinds
Hydra wordpress-plugins.modern-footnotes Hydra build #49369 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.modern-footnotes
Hydra python-rtf-tokenize Hydra build #49370 of nix-packages:x86_64-linux-master-pr266:python-rtf-tokenize
Hydra mautrix-cleanup Hydra build #49371 of nix-packages:x86_64-linux-master-pr266:mautrix-cleanup
Hydra akkoma Hydra build #49373 of nix-packages:x86_64-linux-master-pr266:akkoma
Hydra plover Hydra build #49374 of nix-packages:x86_64-linux-master-pr266:plover
Hydra python-tulir-telethon Hydra build #49375 of nix-packages:x86_64-linux-master-pr266:python-tulir-telethon
Hydra plover-plugin-emoji Hydra build #49376 of nix-packages:x86_64-linux-master-pr266:plover-plugin-emoji
Hydra wordpress-plugins.friends Hydra build #49377 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.friends
Hydra nasin-nanpa Hydra build #49378 of nix-packages:x86_64-linux-master-pr266:nasin-nanpa
Hydra emoji-volpeon-raccoon Hydra build #49379 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-raccoon
Hydra wordpress-plugins.activitypub Hydra build #49380 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.activitypub
Hydra wordpress-plugins.pubsubhubbub Hydra build #49381 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.polylang Hydra build #49382 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.polylang
Hydra miifox-net Hydra build #49383 of nix-packages:x86_64-linux-master-pr266:miifox-net
Hydra woodpecker-frontend Hydra build #49384 of nix-packages:x86_64-linux-master-pr266:woodpecker-frontend
Hydra wordpress-plugins.wordpress-seo Hydra build #49385 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.wordpress-seo
Hydra emoji-volpeon-bunhd Hydra build #49386 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-bunhd
Hydra pleroma-fe Hydra build #49387 of nix-packages:x86_64-linux-master-pr266:pleroma-fe
Hydra plover-plugin-yaml-dictionary Hydra build #49388 of nix-packages:x86_64-linux-master-pr266:plover-plugin-yaml-dictionary
Hydra matrix-media-repo Hydra build #49389 of nix-packages:x86_64-linux-master-pr266:matrix-media-repo
Hydra wordpress-plugins.classic-editor Hydra build #49390 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.classic-editor
Hydra hydra-unstable Hydra build #49391 of nix-packages:x86_64-linux-master-pr266:hydra-unstable
Hydra plover-plugin-machine-hid Hydra build #49392 of nix-packages:x86_64-linux-master-pr266:plover-plugin-machine-hid
Hydra fairfax Hydra build #49393 of nix-packages:x86_64-linux-master-pr266:fairfax
Hydra admin-fe Hydra build #49394 of nix-packages:x86_64-linux-master-pr266:admin-fe
Hydra fairfax-hd Hydra build #49395 of nix-packages:x86_64-linux-master-pr266:fairfax-hd
Hydra wordpress-plugins.jetpack Hydra build #49396 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.jetpack
Hydra emoji-volpeon-fox Hydra build #49397 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-fox
Hydra emoji-volpeon-gphn Hydra build #49398 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-gphn
Hydra wordpress-themes.twentytwentythree Hydra build #49399 of nix-packages:x86_64-linux-master-pr266:wordpress-themes.twentytwentythree
Hydra emoji-volpeon-vlpn Hydra build #49400 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-vlpn
Hydra old-homepage Hydra build #49401 of nix-packages:x86_64-linux-master-pr266:old-homepage
Hydra mautrix-whatsapp Hydra build #49402 of nix-packages:x86_64-linux-master-pr266:mautrix-whatsapp
Hydra constructium Hydra build #49403 of nix-packages:x86_64-linux-master-pr266:constructium
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #49404 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.the-plus-addons-for-block-editor
Hydra wordpress-plugins.webfinger Hydra build #49405 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.webfinger
Hydra hydra Hydra build #49407 of nix-packages:x86_64-linux-master-pr266:hydra
Hydra wordpress-plugins.indieauth Hydra build #49408 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.indieauth
Hydra wordpress-themes.sempress Hydra build #49409 of nix-packages:x86_64-linux-master-pr266:wordpress-themes.sempress
Hydra woodpecker-server Hydra build #49410 of nix-packages:x86_64-linux-master-pr266:woodpecker-server
Hydra wordpress-plugins.micropub Hydra build #49411 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.micropub
Hydra alco-sans Hydra build #49412 of nix-packages:x86_64-linux-master-pr266:alco-sans
Hydra wordpress-plugins.wp-super-cache Hydra build #49413 of nix-packages:x86_64-linux-master-pr266:wordpress-plugins.wp-super-cache
Hydra emoji-volpeon-drgn Hydra build #49414 of nix-packages:x86_64-linux-master-pr266:emoji-volpeon-drgn
Hydra plover-plugin-tapey-tape Hydra build #49415 of nix-packages:x86_64-linux-master-pr266:plover-plugin-tapey-tape
Hydra mautrix-telegram Hydra build #49327 of nix-packages:aarch64-linux-master-pr266:mautrix-telegram
Hydra mautrix-signal Hydra build #49293 of nix-packages:aarch64-linux-master-pr266:mautrix-signal
Hydra plover-dict-didoesdigital Hydra build #49331 of nix-packages:aarch64-linux-master-pr266:plover-dict-didoesdigital
Hydra papermc Hydra build #49346 of nix-packages:x86_64-linux-master-pr266:papermc
Hydra mautrix-discord Hydra build #49285 of nix-packages:aarch64-linux-master-pr266:mautrix-discord
Hydra element-web Hydra build #49301 of nix-packages:aarch64-linux-master-pr266:element-web
update
2023-06-12 13:18:53 +01:00

41 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
stdenvNoCC,
openjdk_headless,
callPackage,
lib,
writeScript,
}: let
paperJar = callPackage ./jar.nix {};
versionInfo = builtins.fromJSON (builtins.readFile ./paper.json);
in
stdenvNoCC.mkDerivation {
preferLocalBuild = true;
pname = "paper";
version = "${versionInfo.version}.${toString versionInfo.build}";
dontUnpack = true;
dontConfigure = true;
buildPhase = ''
cat > minecraft-server << EOF
#!/bin/sh
exec ${openjdk_headless}/bin/java \$@ -jar $out/share/papermc/papermc.jar nogui
'';
installPhase = ''
mkdir -p $out/share/papermc
ln -s ${paperJar} $out/share/papermc/papermc.jar
install -Dm555 -t $out/bin minecraft-server
'';
meta = {
description = "High performance minecraft server";
# This is a fun one because while papermcs patches are released under the gpl, they apply patches to a proprietary binary which they then execute, so
license = lib.licenses.gpl3;
unfree = true;
};
passthru.updateScript = writeScript "update-paper" '' #! /usr/bin/env nix-shell
#! nix-shell -i bash -p curl jq
curl -L https://papermc.io/api/v2/projects/paper/versions/1.20/builds | jq '{"version":.version, "build":.builds[-1].build, "name":.builds[-1].downloads.application.name, "sha256":.builds[-1].downloads.application.sha256}' > minecraft/papermc/paper.json
'';
}