2018-11-03 04:39:36 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, deadcode
|
|
|
|
, errcheck
|
|
|
|
, fetchFromGitHub
|
|
|
|
, go
|
|
|
|
, go-check
|
|
|
|
, go-tools
|
|
|
|
, goconst
|
|
|
|
, gocyclo
|
|
|
|
, golint
|
|
|
|
, gosec
|
|
|
|
, gotools
|
|
|
|
, ineffassign
|
|
|
|
, maligned
|
|
|
|
, interfacer
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, unconvert
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
runtimeDeps = [
|
|
|
|
deadcode
|
|
|
|
errcheck
|
|
|
|
go
|
|
|
|
go-check
|
|
|
|
go-tools
|
|
|
|
goconst
|
|
|
|
gocyclo
|
|
|
|
golint
|
|
|
|
gosec
|
|
|
|
gotools
|
|
|
|
ineffassign
|
|
|
|
interfacer
|
|
|
|
maligned
|
|
|
|
unconvert
|
|
|
|
];
|
|
|
|
|
|
|
|
in buildGoPackage rec {
|
|
|
|
name = "gometalinter-${version}";
|
2019-02-12 17:49:19 +00:00
|
|
|
version = "3.0.0";
|
2018-11-03 04:39:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/alecthomas/gometalinter";
|
|
|
|
excludedPackages = "\\(regressiontests\\)";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alecthomas";
|
|
|
|
repo = "gometalinter";
|
|
|
|
rev = "v${version}";
|
2019-02-12 17:49:19 +00:00
|
|
|
sha256 = "06dd60531qp0hxfwnxnyi36d6div1j781jvcb99ykhgrg0kwmzq9";
|
2018-11-03 04:39:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $bin/bin/gometalinter --prefix PATH : "${makeBinPath runtimeDeps}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
allowGoReference = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Concurrently run Go lint tools and normalise their output";
|
|
|
|
homepage = https://github.com/alecthomas/gometalinter;
|
|
|
|
license = licenses.mit;
|
2019-02-12 17:49:19 +00:00
|
|
|
maintainers = with maintainers; [ kalbasit rvolosatovs ];
|
2018-11-03 04:39:36 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|