nixpkgs/pkgs/development/tools/misc/reviewdog/default.nix

30 lines
934 B
Nix
Raw Normal View History

2020-03-21 11:13:00 +00:00
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
2019-06-15 07:00:00 +00:00
buildGoModule rec {
pname = "reviewdog";
2020-01-15 23:18:18 +00:00
version = "0.9.17";
2019-06-15 07:00:00 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2020-01-15 23:18:18 +00:00
sha256 = "0fm7avkc8izs0a9lqshibzpl08g4l3w38ayw7g521p23aq90q3c9";
2019-06-15 07:00:00 +00:00
};
2020-01-15 23:18:18 +00:00
modSha256 = "1jf08g0xr4wknh9x15igq73y02cy2faqjdjs2v842ii4p3n4p9dw";
2019-06-15 07:00:00 +00:00
2020-03-21 11:13:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2019-06-15 07:00:00 +00:00
subPackages = [ "cmd/reviewdog" ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/reviewdog/reviewdog/commands.Version=${version}" ];
2019-06-15 07:00:00 +00:00
2020-03-21 11:13:00 +00:00
meta = with stdenv.lib; {
2019-06-15 07:00:00 +00:00
description = "Automated code review tool integrated with any code analysis tools regardless of programming language";
homepage = "https://github.com/reviewdog/reviewdog";
2020-01-08 09:20:00 +00:00
changelog = "https://github.com/reviewdog/reviewdog/releases/tag/v${version}";
2019-06-15 07:00:00 +00:00
maintainers = [ maintainers.marsam ];
license = licenses.mit;
};
}