gometalinter: init at 2.0.11

This commit is contained in:
Wael M. Nasreddine 2018-11-02 21:39:36 -07:00
parent a1faa70368
commit 6a09bfc8bc
No known key found for this signature in database
GPG Key ID: 82AE0A31B33CEFCF
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,70 @@
{ 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}";
version = "2.0.11";
goPackagePath = "github.com/alecthomas/gometalinter";
excludedPackages = "\\(regressiontests\\)";
src = fetchFromGitHub {
owner = "alecthomas";
repo = "gometalinter";
rev = "v${version}";
sha256 = "08p7bwvhpgizif8qi59m8mm3mcny70x9msbk8m8vjpphsq55wha4";
};
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;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@ -6955,6 +6955,8 @@ with pkgs;
gogetdoc = callPackage ../development/tools/gogetdoc { };
gometalinter = callPackage ../development/tools/gometalinter { };
gox = callPackage ../development/tools/gox { };
gprolog = callPackage ../development/compilers/gprolog { };