nixpkgs/pkgs/development/tools/api-linter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
748 B
Nix
Raw Normal View History

2023-07-23 10:20:13 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "api-linter";
2024-01-28 17:07:07 +00:00
version = "1.63.3";
2023-07-23 10:20:13 +00:00
src = fetchFromGitHub {
owner = "googleapis";
repo = "api-linter";
rev = "v${version}";
2024-01-28 17:07:07 +00:00
hash = "sha256-mcmp3M9KhZp3j18jh+3v5fwPPLRs2hkrRUN3RM/zCmo=";
2023-07-23 10:20:13 +00:00
};
2024-01-28 17:07:07 +00:00
vendorHash = "sha256-/z2FqMyZnn2A5aajimTS2zw3A1v5v0uYZY81acuQOnw=";
2023-07-23 10:20:13 +00:00
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 ];
};
}