657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
34 lines
780 B
Nix
34 lines
780 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "api-linter";
|
|
version = "1.67.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "api-linter";
|
|
rev = "v${version}";
|
|
hash = "sha256-zHJE3sau2KAbPNafUw2+OPFI5RRomqzr1QMEB1vfq3I=";
|
|
};
|
|
|
|
vendorHash = "sha256-rZn3SYcuFay2pjGad+NhEf8dmzonsvO7M4OQovT8otg=";
|
|
|
|
subPackages = [ "cmd/api-linter" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Linter for APIs defined in protocol buffers";
|
|
homepage = "https://github.com/googleapis/api-linter/";
|
|
changelog = "https://github.com/googleapis/api-linter/releases/tag/${src.rev}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
mainProgram = "api-linter";
|
|
};
|
|
}
|