mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "gate";
|
|
version = "0.65.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minekube";
|
|
repo = "gate";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-FvwwVx2b4TB0gVfeWhygAJABea/u7dsgz1iHa0U+E5g=";
|
|
};
|
|
|
|
vendorHash = "sha256-487PKbLfeiB2IRWGvclp/M76RprVYcaE2v8FCqlPX9I=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
# this test requires network access, therefore it should not be run
|
|
preCheck = ''
|
|
rm ./pkg/edition/bedrock/geyser/managed/download_test.go
|
|
'';
|
|
|
|
excludedPackages = [ ".web" ];
|
|
|
|
meta = {
|
|
description = "High-Performance, Low-Memory, Lightweight, Extensible Minecraft Reverse Proxy";
|
|
longDescription = ''
|
|
Gate is an extensible, high performant & paralleled Minecraft proxy server
|
|
with scalability, flexibility & excellent server version support - written in Go
|
|
and ready for the cloud!
|
|
'';
|
|
homepage = "https://github.com/minekube/gate";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ XBagon ];
|
|
mainProgram = "gate";
|
|
};
|
|
})
|