Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 959 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7let 8 pname = "gate"; 9 version = "0.51.0"; 10in 11buildGoModule { 12 inherit pname version; 13 14 src = fetchFromGitHub { 15 owner = "minekube"; 16 repo = "gate"; 17 tag = "v${version}"; 18 hash = "sha256-Fe02QzD9ZtYT+pakWWjwM48dqe7SeF011/FafbvGc0E="; 19 }; 20 21 vendorHash = "sha256-d/D1l+/viJ5OFSpUDpC+4pnDwPJDBuYDjS7niao5D9U="; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 ]; 27 28 excludedPackages = [ ".web" ]; 29 30 meta = { 31 description = "High-Performance, Low-Memory, Lightweight, Extensible Minecraft Reverse Proxy"; 32 longDescription = '' 33 Gate is an extensible, high performant & paralleled Minecraft proxy server 34 with scalability, flexibility & excellent server version support - written in Go 35 and ready for the cloud! 36 ''; 37 homepage = "https://github.com/minekube/gate"; 38 license = lib.licenses.asl20; 39 maintainers = with lib.maintainers; [ XBagon ]; 40 mainProgram = "gate"; 41 }; 42}