nixpkgs-suyu/pkgs/development/tools/gometalinter/default.nix

71 lines
1.2 KiB
Nix
Raw Normal View History

2018-11-03 05:39:36 +01: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 {
pname = "gometalinter";
2019-02-12 18:49:19 +01:00
version = "3.0.0";
2018-11-03 05:39:36 +01:00
goPackagePath = "github.com/alecthomas/gometalinter";
excludedPackages = "\\(regressiontests\\)";
src = fetchFromGitHub {
owner = "alecthomas";
repo = "gometalinter";
rev = "v${version}";
2019-02-12 18:49:19 +01:00
sha256 = "06dd60531qp0hxfwnxnyi36d6div1j781jvcb99ykhgrg0kwmzq9";
2018-11-03 05:39:36 +01: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 18:49:19 +01:00
maintainers = with maintainers; [ kalbasit rvolosatovs ];
2018-11-03 05:39:36 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}