summary refs log tree commit diff
path: root/pkgs/development/tools/go-tools/default.nix
blob: b047689b81f928059bccdfff170b2988f0b9b0bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ buildGoModule
, stdenv
, fetchFromGitHub
, Security
}:

buildGoModule rec {
  pname = "go-tools";
  version = "2020.1.3";

  excludedPackages = ''\(simple\|ssa\|ssa/ssautil\|lint\|staticcheck\|stylecheck\|unused\)/testdata'';

  src = fetchFromGitHub {
    owner = "dominikh";
    repo = "go-tools";
    rev = version;
    sha256 = "0pvi1mzhy6zgx4zfgdypbl4zhvgg11hl5qv7blf2qs0a96j2djhf";
  };

  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

  modSha256 = "03560xjr2531xj87paskfx2zs364fz6y4kpsid8x08s1syq9nq7p";

  meta = with stdenv.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;
    maintainers = with maintainers; [ rvolosatovs kalbasit ];
  };
}