159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
30 lines
867 B
Nix
30 lines
867 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "reviewdog";
|
|
version = "0.20.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-UB2cylJn90TE3ng9JaPwmpbkhuPOmRnlS/eCZSjfqwQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-hFmUhA35J1c2Mp7SeaJF4+Jid8GfdsEiF7lEdPoYbS4=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd/reviewdog" ];
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/reviewdog/reviewdog/commands.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Automated code review tool integrated with any code analysis tools regardless of programming language";
|
|
mainProgram = "reviewdog";
|
|
homepage = "https://github.com/reviewdog/reviewdog";
|
|
changelog = "https://github.com/reviewdog/reviewdog/blob/v${version}/CHANGELOG.md";
|
|
maintainers = [ ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|