Charlotte 🦝 Delenk
bed7c97f6d
Some checks failed
Hydra mautrix-cleanup Hydra build #12780 of nix-packages:aarch64-linux-master-pr5:mautrix-cleanup
Hydra plover-plugin-rkb1-hid Hydra build #12781 of nix-packages:aarch64-linux-master-pr5:plover-plugin-rkb1-hid
Hydra woodpecker-server Hydra build #12782 of nix-packages:aarch64-linux-master-pr5:woodpecker-server
Hydra emoji-caro Hydra build #12783 of nix-packages:aarch64-linux-master-pr5:emoji-caro
Hydra plover-plugin-yaml-dictionary Hydra build #12784 of nix-packages:aarch64-linux-master-pr5:plover-plugin-yaml-dictionary
Hydra emoji-volpeon-fox Hydra build #12785 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-fox
Hydra alco-sans Hydra build #12786 of nix-packages:aarch64-linux-master-pr5:alco-sans
Hydra rpi4Kernel Hydra build #12787 of nix-packages:aarch64-linux-master-pr5:rpi4Kernel
Hydra woodpecker-frontend Hydra build #12788 of nix-packages:aarch64-linux-master-pr5:woodpecker-frontend
Hydra mautrix-whatsapp Hydra build #12789 of nix-packages:aarch64-linux-master-pr5:mautrix-whatsapp
Hydra emoji-volpeon-vlpn Hydra build #12790 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-vlpn
Hydra kreative-square Hydra build #12791 of nix-packages:aarch64-linux-master-pr5:kreative-square
Hydra attic-client Hydra build #12792 of nix-packages:aarch64-linux-master-pr5:attic-client
Hydra fairfax-hd Hydra build #12793 of nix-packages:aarch64-linux-master-pr5:fairfax-hd
Hydra constructium Hydra build #12794 of nix-packages:aarch64-linux-master-pr5:constructium
Hydra admin-fe Hydra build #12795 of nix-packages:aarch64-linux-master-pr5:admin-fe
Hydra emoji-volpeon-gphn Hydra build #12796 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-gphn
Hydra python-tulir-telethon Hydra build #12797 of nix-packages:aarch64-linux-master-pr5:python-tulir-telethon
Hydra woodpecker-agent Hydra build #12798 of nix-packages:aarch64-linux-master-pr5:woodpecker-agent
Hydra old-homepage Hydra build #12799 of nix-packages:aarch64-linux-master-pr5:old-homepage
Hydra python-simplefuzzyset Hydra build #12800 of nix-packages:aarch64-linux-master-pr5:python-simplefuzzyset
Hydra fairfax Hydra build #12801 of nix-packages:aarch64-linux-master-pr5:fairfax
Hydra emoji-volpeon-bunhd-flip Hydra build #12802 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-bunhd-flip
Hydra python-rtf-tokenize Hydra build #12803 of nix-packages:aarch64-linux-master-pr5:python-rtf-tokenize
Hydra attic-server Hydra build #12804 of nix-packages:aarch64-linux-master-pr5:attic-server
Hydra emoji-volpeon-raccoon Hydra build #12805 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-raccoon
Hydra plover-dict-didoesdigital Hydra build #12806 of nix-packages:aarch64-linux-master-pr5:plover-dict-didoesdigital
Hydra miifox-net Hydra build #12807 of nix-packages:aarch64-linux-master-pr5:miifox-net
Hydra plover-plugin-machine-hid Hydra build #12808 of nix-packages:aarch64-linux-master-pr5:plover-plugin-machine-hid
Hydra emoji-volpeon-drgn Hydra build #12809 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-drgn
Hydra emoji-lotte Hydra build #12811 of nix-packages:aarch64-linux-master-pr5:emoji-lotte
Hydra python-instagram Hydra build #12812 of nix-packages:aarch64-linux-master-pr5:python-instagram
Hydra element-web Hydra build #12813 of nix-packages:aarch64-linux-master-pr5:element-web
Hydra mautrix-signal Hydra build #12814 of nix-packages:aarch64-linux-master-pr5:mautrix-signal
Hydra plover Hydra build #12815 of nix-packages:aarch64-linux-master-pr5:plover
Hydra python-plover-stroke Hydra build #12816 of nix-packages:aarch64-linux-master-pr5:python-plover-stroke
Hydra mautrix-telegram Hydra build #12817 of nix-packages:aarch64-linux-master-pr5:mautrix-telegram
Hydra plover-plugins-manager Hydra build #12818 of nix-packages:aarch64-linux-master-pr5:plover-plugins-manager
Hydra attic Hydra build #12819 of nix-packages:aarch64-linux-master-pr5:attic
Hydra emoji-volpeon-blobfox Hydra build #12820 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-blobfox
Hydra plover-plugin-tapey-tape Hydra build #12821 of nix-packages:aarch64-linux-master-pr5:plover-plugin-tapey-tape
Hydra matrix-media-repo Hydra build #12822 of nix-packages:aarch64-linux-master-pr5:matrix-media-repo
Hydra emoji-volpeon-blobfox-flip Hydra build #12823 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-blobfox-flip
Hydra pleroma-fe Hydra build #12824 of nix-packages:aarch64-linux-master-pr5:pleroma-fe
Hydra plover-plugin-emoji Hydra build #12825 of nix-packages:aarch64-linux-master-pr5:plover-plugin-emoji
Hydra mautrix-discord Hydra build #12826 of nix-packages:aarch64-linux-master-pr5:mautrix-discord
Hydra woodpecker-cli Hydra build #12827 of nix-packages:aarch64-linux-master-pr5:woodpecker-cli
Hydra nasin-nanpa Hydra build #12828 of nix-packages:aarch64-linux-master-pr5:nasin-nanpa
Hydra lotte-art Hydra build #12829 of nix-packages:aarch64-linux-master-pr5:lotte-art
Hydra emoji-volpeon-bunhd Hydra build #12830 of nix-packages:aarch64-linux-master-pr5:emoji-volpeon-bunhd
Hydra akkoma Hydra build #12831 of nix-packages:aarch64-linux-master-pr5:akkoma
Hydra python-mautrix Hydra build #12832 of nix-packages:aarch64-linux-master-pr5:python-mautrix
Hydra papermc Hydra build #12810 of nix-packages:aarch64-linux-master-pr5:papermc
ci/woodpecker/pr/update-flake Pipeline was successful
ci/woodpecker/pr/update Pipeline was successful
41 lines
1.4 KiB
Nix
41 lines
1.4 KiB
Nix
{
|
||
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 papermc’s 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.19.4/builds | jq '{"version":.version, "build":.builds[-1].build, "name":.builds[-1].downloads.application.name, "sha256":.builds[-1].downloads.application.sha256}' > minecraft/papermc/paper.json
|
||
'';
|
||
}
|