Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7buildGoModule rec { 8 pname = "certstream-server-go"; 9 version = "1.8.1"; 10 11 src = fetchFromGitHub { 12 owner = "d-Rickyy-b"; 13 repo = "certstream-server-go"; 14 tag = "v${version}"; 15 hash = "sha256-ashuwJjWrKjVtjPzBLmXX7EMFX0nlxs4B53pBP2G3Bo="; 16 }; 17 18 vendorHash = "sha256-+7wL6JA5sNRNJQKelVkEVCZ5pqOlmn8o7Um2g6rsIlc="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 passthru = { 26 updateScript = nix-update-script { }; 27 }; 28 29 meta = { 30 description = "Drop-in replacement in Golang for the certstream server by Calidog"; 31 homepage = "https://github.com/d-Rickyy-b/certstream-server-go"; 32 changelog = "https://github.com/d-Rickyy-b/certstream-server-go/blob/v${version}/CHANGELOG.md"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ x123 ]; 35 mainProgram = "certstream-server-go"; 36 }; 37}