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 48ce861181
Some checks failed
Hydra hydra Hydra build #52673 of nix-packages:aarch64-linux-master-pr273:hydra
Hydra hydra-unstable Hydra build #52680 of nix-packages:aarch64-linux-master-pr273:hydra-unstable
Hydra wordpress-plugins.webp-express Hydra build #52716 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.webp-express
Hydra wordpress-plugins.modern-images-wp Hydra build #52718 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.modern-images-wp
Hydra wordpress-plugins.webfinger Hydra build #52720 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.webfinger
Hydra wordpress-plugins.nodeinfo Hydra build #52724 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.nodeinfo
Hydra wordpress-plugins.wordpress-seo Hydra build #52726 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.wordpress-seo
Hydra python-rtf-tokenize Hydra build #52729 of nix-packages:riscv64-linux-master-pr273:python-rtf-tokenize
Hydra fairfax-hd Hydra build #52732 of nix-packages:riscv64-linux-master-pr273:fairfax-hd
Hydra wordpress-plugins.jetpack Hydra build #52733 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.jetpack
Hydra python-plover-stroke Hydra build #52734 of nix-packages:riscv64-linux-master-pr273:python-plover-stroke
Hydra wordpress-themes.sempress Hydra build #52735 of nix-packages:riscv64-linux-master-pr273:wordpress-themes.sempress
Hydra old-homepage Hydra build #52736 of nix-packages:riscv64-linux-master-pr273:old-homepage
Hydra wordpress-plugins.classic-editor Hydra build #52739 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.classic-editor
Hydra wordpress-plugins.activitypub Hydra build #52740 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.activitypub
Hydra wordpress-plugins.polylang Hydra build #52749 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.polylang
Hydra constructium Hydra build #52752 of nix-packages:riscv64-linux-master-pr273:constructium
Hydra plover-dict-didoesdigital Hydra build #52756 of nix-packages:riscv64-linux-master-pr273:plover-dict-didoesdigital
Hydra alco-sans Hydra build #52757 of nix-packages:riscv64-linux-master-pr273:alco-sans
Hydra wordpress-plugins.webmention Hydra build #52762 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.webmention
Hydra wordpress-plugins.google-sitemap-generator Hydra build #52764 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.pubsubhubbub Hydra build #52767 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.indieauth Hydra build #52768 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.indieauth
Hydra wordpress-plugins.micropub Hydra build #52770 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.micropub
Hydra wordpress-themes.twentytwentythree Hydra build #52771 of nix-packages:riscv64-linux-master-pr273:wordpress-themes.twentytwentythree
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #52772 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.indieweb-post-kinds
Hydra fairfax Hydra build #52773 of nix-packages:riscv64-linux-master-pr273:fairfax
Hydra wordpress-plugins.syndication-links Hydra build #52774 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.syndication-links
Hydra wordpress-plugins.wp-super-cache Hydra build #52775 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.wp-super-cache
Hydra wordpress-plugins.indieweb Hydra build #52776 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.indieweb
Hydra wordpress-plugins.modern-footnotes Hydra build #52782 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.modern-footnotes
Hydra kreative-square Hydra build #52785 of nix-packages:riscv64-linux-master-pr273:kreative-square
Hydra wordpress-plugins.hum Hydra build #52714 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.hum
Hydra python-simplefuzzyset Hydra build #52745 of nix-packages:riscv64-linux-master-pr273:python-simplefuzzyset
Hydra wordpress-plugins.friends Hydra build #52655 of nix-packages:aarch64-linux-master-pr273:wordpress-plugins.friends
Hydra pleroma-fe Hydra build #52765 of nix-packages:riscv64-linux-master-pr273:pleroma-fe
Hydra woodpecker-cli Hydra build #52743 of nix-packages:riscv64-linux-master-pr273:woodpecker-cli
Hydra matrix-media-repo Hydra build #52786 of nix-packages:riscv64-linux-master-pr273:matrix-media-repo
Hydra mautrix-discord Hydra build #52780 of nix-packages:riscv64-linux-master-pr273:mautrix-discord
Hydra mautrix-cleanup Hydra build #52753 of nix-packages:riscv64-linux-master-pr273:mautrix-cleanup
Hydra kubo Hydra build #52748 of nix-packages:riscv64-linux-master-pr273:kubo
Hydra woodpecker-agent Hydra build #52754 of nix-packages:riscv64-linux-master-pr273:woodpecker-agent
Hydra mautrix-whatsapp Hydra build #52755 of nix-packages:riscv64-linux-master-pr273:mautrix-whatsapp
Hydra python-tulir-telethon Hydra build #52761 of nix-packages:riscv64-linux-master-pr273:python-tulir-telethon
Hydra vf2Kernel Hydra build #52819 of nix-packages:riscv64-linux-master-pr273:vf2Kernel
Hydra emoji-volpeon-gphn Hydra build #52954 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-gphn
Hydra papermc Hydra build #52955 of nix-packages:x86_64-linux-master-pr273:papermc
Hydra emoji-volpeon-drgn Hydra build #52956 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-drgn
Hydra emoji-caro Hydra build #52957 of nix-packages:x86_64-linux-master-pr273:emoji-caro
Hydra akkoma Hydra build #52958 of nix-packages:x86_64-linux-master-pr273:akkoma
Hydra emoji-lotte Hydra build #52959 of nix-packages:x86_64-linux-master-pr273:emoji-lotte
Hydra plover-plugin-yaml-dictionary Hydra build #52960 of nix-packages:x86_64-linux-master-pr273:plover-plugin-yaml-dictionary
Hydra lotte-art Hydra build #52961 of nix-packages:x86_64-linux-master-pr273:lotte-art
Hydra plover-plugin-tapey-tape Hydra build #52962 of nix-packages:x86_64-linux-master-pr273:plover-plugin-tapey-tape
Hydra plover Hydra build #52963 of nix-packages:x86_64-linux-master-pr273:plover
Hydra python-instagram Hydra build #52964 of nix-packages:x86_64-linux-master-pr273:python-instagram
Hydra emoji-volpeon-bunhd Hydra build #52965 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-bunhd
Hydra emoji-volpeon-fox Hydra build #52966 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-fox
Hydra nasin-nanpa Hydra build #52967 of nix-packages:x86_64-linux-master-pr273:nasin-nanpa
Hydra plover-plugin-rkb1-hid Hydra build #52968 of nix-packages:x86_64-linux-master-pr273:plover-plugin-rkb1-hid
Hydra emoji-volpeon-raccoon Hydra build #52969 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-raccoon
Hydra plover-plugin-machine-hid Hydra build #52970 of nix-packages:x86_64-linux-master-pr273:plover-plugin-machine-hid
Hydra emoji-volpeon-vlpn Hydra build #52971 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-vlpn
Hydra python-mautrix Hydra build #52972 of nix-packages:x86_64-linux-master-pr273:python-mautrix
Hydra emoji-volpeon-bunhd-flip Hydra build #52973 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-bunhd-flip
Hydra plover-plugins-manager Hydra build #52974 of nix-packages:x86_64-linux-master-pr273:plover-plugins-manager
Hydra mautrix-telegram Hydra build #52975 of nix-packages:x86_64-linux-master-pr273:mautrix-telegram
Hydra miifox-net Hydra build #52976 of nix-packages:x86_64-linux-master-pr273:miifox-net
Hydra emoji-volpeon-blobfox-flip Hydra build #52977 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-blobfox-flip
Hydra emoji-volpeon-blobfox Hydra build #52978 of nix-packages:x86_64-linux-master-pr273:emoji-volpeon-blobfox
Hydra plover-plugin-emoji Hydra build #52979 of nix-packages:x86_64-linux-master-pr273:plover-plugin-emoji
Hydra fcitx5 Hydra build #52980 of nix-packages:x86_64-linux-master-pr273:fcitx5
Hydra mautrix-signal Hydra build #52981 of nix-packages:x86_64-linux-master-pr273:mautrix-signal
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #52725 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.the-plus-addons-for-block-editor
Hydra admin-fe Hydra build #52622 of nix-packages:x86_64-linux-master-pr273:admin-fe
Hydra wordpress-plugins.ilab-media-tools Hydra build #52784 of nix-packages:riscv64-linux-master-pr273:wordpress-plugins.ilab-media-tools
Hydra woodpecker-frontend Hydra build #52587 of nix-packages:x86_64-linux-master-pr273:woodpecker-frontend
Hydra woodpecker-server Hydra build #52603 of nix-packages:x86_64-linux-master-pr273:woodpecker-server
Hydra element-web Hydra build #52783 of nix-packages:riscv64-linux-master-pr273:element-web
update
2023-06-25 06:37:27 +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.1/builds | jq '{"version":.version, "build":.builds[-1].build, "name":.builds[-1].downloads.application.name, "sha256":.builds[-1].downloads.application.sha256}' > minecraft/papermc/paper.json
'';
}