36 lines
785 B
Nix
36 lines
785 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildGoModule,
|
||
|
|
fetchFromGitHub,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildGoModule rec {
|
||
|
|
pname = "api-linter";
|
||
|
|
version = "1.71.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "googleapis";
|
||
|
|
repo = "api-linter";
|
||
|
|
tag = "v${version}";
|
||
|
|
hash = "sha256-WZvaPYiz1pHW6OLl6ahV3/b9RXW6S/c/kbQxJFfAn28=";
|
||
|
|
};
|
||
|
|
|
||
|
|
vendorHash = "sha256-KW5+THuV7U09ZV0eShLCDJYDPOM09/bUi7t0WiVx6pk=";
|
||
|
|
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
}
|