2019-05-22 18:05:59 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2018-07-29 17:16:53 +00:00
|
|
|
|
2019-05-22 18:05:59 +00:00
|
|
|
buildGoModule rec {
|
2018-07-29 17:16:53 +00:00
|
|
|
name = "golangci-lint-${version}";
|
2019-05-22 18:05:59 +00:00
|
|
|
version = "1.16.0";
|
2018-07-29 17:16:53 +00:00
|
|
|
goPackagePath = "github.com/golangci/golangci-lint";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/golangci-lint" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golangci";
|
|
|
|
repo = "golangci-lint";
|
|
|
|
rev = "v${version}";
|
2019-05-22 18:05:59 +00:00
|
|
|
sha256 = "1yzcfmrxyrxhq3vx13qm7czvhvdnaqay75v8ry1lgpg0bnh9pakx";
|
2018-07-29 17:16:53 +00:00
|
|
|
};
|
|
|
|
|
2019-05-22 18:05:59 +00:00
|
|
|
modSha256 = "1dsaj6qsac9y4rkssjbmk46vaqbblzdim2rbdh3dgn1m0vdpv505";
|
|
|
|
|
2018-07-29 17:16:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
|
|
|
|
homepage = https://golangci.com/;
|
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.unix;
|
2019-05-22 18:05:59 +00:00
|
|
|
maintainers = with maintainers; [ anpryl manveru ];
|
2018-07-29 17:16:53 +00:00
|
|
|
};
|
|
|
|
}
|