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

30 lines
795 B
Nix
Raw Normal View History

2018-11-03 04:20:14 +01:00
{ buildGoPackage
, lib
, fetchFromGitHub
}:
buildGoPackage rec {
name = "go-tools-${version}";
2019-05-24 20:54:31 +02:00
version = "2019.1.1";
2018-11-03 04:20:14 +01:00
goPackagePath = "honnef.co/go/tools";
2019-05-24 20:54:31 +02:00
excludedPackages = ''\(simple\|ssa\|ssa/ssautil\|lint\|staticcheck\|stylecheck\|unused\)/testdata'';
2018-11-03 04:20:14 +01:00
src = fetchFromGitHub {
owner = "dominikh";
repo = "go-tools";
rev = "${version}";
2019-05-24 20:54:31 +02:00
sha256 = "1zwh64x3i32p6f6808q609n63xda3bq888n43wl4alpx1b08spha";
2018-11-03 04:20:14 +01:00
};
goDeps = ./deps.nix;
meta = with lib; {
description = "A collection of tools and libraries for working with Go code, including linters and static analysis.";
homepage = https://staticcheck.io;
license = licenses.mit;
2019-05-24 20:54:31 +02:00
maintainers = with maintainers; [ rvolosatovs kalbasit ];
2018-11-03 04:20:14 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}