aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/golint/default.nix
blob: 284bb32f89e8129c770fe5f6f0c93508359e3d1c (plain)
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
{ stdenv, buildGoPackage, fetchgit }:

buildGoPackage rec {
  pname = "lint";
  version = "20181026-${stdenv.lib.strings.substring 0 7 rev}";
  rev = "c67002cb31c3a748b7688c27f20d8358b4193582";

  goPackagePath = "golang.org/x/lint";
  excludedPackages = "testdata";

  # we must allow references to the original `go` package, as golint uses
  # compiler go/build package to load the packages it's linting.
  allowGoReference = true;

  src = fetchgit {
    inherit rev;
    url = "https://go.googlesource.com/lint";
    sha256 = "0gymbggskjmphqxqcx4s0vnlcz7mygbix0vhwcwv5r67c0bf6765";
  };

  goDeps = ./deps.nix;

  meta = with stdenv.lib; {
    homepage = "https://golang.org";
    description = "Linter for Go source code";
    license = licenses.bsd3;
    maintainers = with maintainers; [ jhillyerd ];
  };
}