diff options
author | Aaron Jheng <wentworth@outlook.com> | 2023-09-08 11:19:57 +0800 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2023-09-14 22:11:28 +0800 |
commit | dd5771c0f491f353a8de4ee3e6efad0af4054406 (patch) | |
tree | 60df587bb753d5efa8d8207c437926f794196d4e /pkgs/tools/games | |
parent | d30fde0977d39216736965086d3b6c26a9139755 (diff) |
minecraft-server-hibernation: 2.4.10 -> 2.5.0
Diffstat (limited to 'pkgs/tools/games')
-rw-r--r-- | pkgs/tools/games/minecraft/minecraft-server-hibernation/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/tools/games/minecraft/minecraft-server-hibernation/default.nix b/pkgs/tools/games/minecraft/minecraft-server-hibernation/default.nix index 4e39edd83efa8..ff0e7873827b9 100644 --- a/pkgs/tools/games/minecraft/minecraft-server-hibernation/default.nix +++ b/pkgs/tools/games/minecraft/minecraft-server-hibernation/default.nix @@ -2,24 +2,35 @@ buildGoModule rec { pname = "minecraft-server-hibernation"; - version = "2.4.10"; + version = "2.5.0"; src = fetchFromGitHub { owner = "gekware"; repo = pname; rev = "v${version}"; - sha256 = "sha256-hflPVO+gqHr0jDrhWzd7t/E6WsswiMKMHCkTUK4E05k="; + hash = "sha256-b6LeqjIraIasHBpaVgy8esl4NV8rdBrfO7ewgeIocS8="; }; - vendorHash = "sha256-W6P7wz1FGL6Os1zmmqWJ7/sO8zizfnwg+TMiFWGHIOM="; + vendorHash = null; ldflags = [ "-s" "-w" ]; + checkFlags = + let + skippedTests = [ + # Disable tests requiring network access + "Test_getPing" + "Test_getReqType" + "Test_QueryBasic" + "Test_QueryFull" + ]; + in + [ "-skip" "${builtins.concatStringsSep "|" skippedTests}" ]; + 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 ]; }; } |