fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
34 lines
780 B
Nix
34 lines
780 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "api-linter";
|
|
version = "1.66.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "api-linter";
|
|
rev = "v${version}";
|
|
hash = "sha256-gaXvkWexvpKOiUEk4OOHla8HmT0sAT94peljH9q9N7c=";
|
|
};
|
|
|
|
vendorHash = "sha256-czLcy/9QbBuKu3lPISx3Pzf2ccvdp7gF0SWVbSZ6Nn8=";
|
|
|
|
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";
|
|
};
|
|
}
|