587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
34 lines
780 B
Nix
34 lines
780 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "api-linter";
|
|
version = "1.65.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "api-linter";
|
|
rev = "v${version}";
|
|
hash = "sha256-YGawN0mAJHfWkre+0tunPM/psd9aBWtSVsJoar0WVwY=";
|
|
};
|
|
|
|
vendorHash = "sha256-CsOnHHq3UjNWjfMy1TjXy20B0Bni6Fr3ZMJGvU7QDFA=";
|
|
|
|
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";
|
|
};
|
|
}
|