Merge pull request #150225 from jyooru/init/purpur
purpur: init at 1.17.1r1428
This commit is contained in:
commit
81a988f32d
41
pkgs/games/purpur/default.nix
Normal file
41
pkgs/games/purpur/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchurl, nixosTests, jre_headless, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "purpur";
|
||||
version = "1.18.1r1522";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://api.purpurmc.org/v2/purpur/${builtins.replaceStrings [ "r" ] [ "/" ] version}/download";
|
||||
sha256 = "1060fsfcw6m30d47wla1vsnmc4czyla6m8wf91ws095hbvc22qsm";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib/minecraft
|
||||
cp -v $src $out/lib/minecraft/server.jar
|
||||
|
||||
makeWrapper ${jre_headless}/bin/java $out/bin/minecraft-server \
|
||||
--add-flags "-jar $out/lib/minecraft/server.jar nogui"
|
||||
'';
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
passthru = {
|
||||
tests = { inherit (nixosTests) minecraft-server; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A drop-in replacement for Minecraft Paper servers";
|
||||
longDescription = ''
|
||||
Purpur is a drop-in replacement for Minecraft Paper servers designed for configurability, new fun and exciting
|
||||
gameplay features, and performance built on top of Airplane.
|
||||
'';
|
||||
homepage = "https://purpurmc.org/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ jyooru ];
|
||||
};
|
||||
}
|
|
@ -28066,6 +28066,8 @@ with pkgs;
|
|||
|
||||
purple-facebook = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-facebook { };
|
||||
|
||||
purpur = callPackage ../games/purpur { };
|
||||
|
||||
pikopixel = callPackage ../applications/graphics/pikopixel { };
|
||||
|
||||
pithos = callPackage ../applications/audio/pithos {
|
||||
|
|
Loading…
Reference in a new issue