Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "api-linter"; 9 version = "1.70.1"; 10 11 src = fetchFromGitHub { 12 owner = "googleapis"; 13 repo = "api-linter"; 14 tag = "v${version}"; 15 hash = "sha256-Jztu8xQWLeJVSk+yx3julu0wkQNpgQtzZvrKP71T7Eg="; 16 }; 17 18 vendorHash = "sha256-wIZdL393uPVqz0rJV5NU6SHm8RU5orrHREhKbjBHTYU="; 19 20 subPackages = [ "cmd/api-linter" ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 meta = with lib; { 28 description = "Linter for APIs defined in protocol buffers"; 29 homepage = "https://github.com/googleapis/api-linter/"; 30 changelog = "https://github.com/googleapis/api-linter/releases/tag/${src.rev}"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ xrelkd ]; 33 mainProgram = "api-linter"; 34 }; 35}