Merge pull request #203701 from SquarePear/minecraft-server-hibernation

This commit is contained in:
Norbert Melzer 2022-12-14 00:01:33 +01:00 committed by GitHub
commit aae24b673a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "minecraft-server-hibernation";
version = "2.4.10";
src = fetchFromGitHub {
owner = "gekware";
repo = pname;
rev = "v${version}";
sha256 = "sha256-hflPVO+gqHr0jDrhWzd7t/E6WsswiMKMHCkTUK4E05k=";
};
vendorSha256 = "sha256-W6P7wz1FGL6Os1zmmqWJ7/sO8zizfnwg+TMiFWGHIOM=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Autostart and stop minecraft-server when players join/leave";
homepage = "https://github.com/gekware/minecraft-server-hibernation";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ squarepear ];
};
}

View file

@ -34514,6 +34514,8 @@ with pkgs;
minecraft = callPackage ../games/minecraft { };
minecraft-server-hibernation = callPackage ../tools/games/minecraft/minecraft-server-hibernation { };
minecraftServers = import ../games/minecraft-servers { inherit callPackage lib javaPackages; };
minecraft-server = minecraftServers.vanilla; # backwards compatibility