fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / mi / minecraft-server-hibernation / package.nix
blobe5279d2e3bf2bad94dcbc24cca0cb8c32c44ec3c
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "minecraft-server-hibernation";
9   version = "2.5.0";
11   src = fetchFromGitHub {
12     owner = "gekware";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-b6LeqjIraIasHBpaVgy8esl4NV8rdBrfO7ewgeIocS8=";
16   };
18   vendorHash = null;
20   ldflags = [
21     "-s"
22     "-w"
23   ];
25   checkFlags =
26     let
27       skippedTests = [
28         # Disable tests requiring network access
29         "Test_getPing"
30         "Test_getReqType"
31         "Test_QueryBasic"
32         "Test_QueryFull"
33       ];
34     in
35     [
36       "-skip"
37       "${builtins.concatStringsSep "|" skippedTests}"
38     ];
40   meta = with lib; {
41     description = "Autostart and stop minecraft-server when players join/leave";
42     mainProgram = "msh";
43     homepage = "https://github.com/gekware/minecraft-server-hibernation";
44     license = licenses.gpl3Only;
45     maintainers = with maintainers; [ squarepear ];
46   };