2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchgit }:
|
2016-06-04 13:35:09 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lint";
|
2021-01-23 12:26:19 +00:00
|
|
|
version = "20181026-${lib.strings.substring 0 7 rev}";
|
2018-11-22 04:34:26 +00:00
|
|
|
rev = "c67002cb31c3a748b7688c27f20d8358b4193582";
|
2020-07-31 05:07:43 +01:00
|
|
|
|
2018-11-22 04:34:26 +00:00
|
|
|
goPackagePath = "golang.org/x/lint";
|
2016-06-04 13:35:09 +01:00
|
|
|
excludedPackages = "testdata";
|
|
|
|
|
2018-11-22 04:34:26 +00:00
|
|
|
# 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;
|
|
|
|
|
2016-06-04 13:35:09 +01:00
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
2018-11-22 04:34:26 +00:00
|
|
|
url = "https://go.googlesource.com/lint";
|
|
|
|
sha256 = "0gymbggskjmphqxqcx4s0vnlcz7mygbix0vhwcwv5r67c0bf6765";
|
2016-06-04 13:35:09 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./deps.nix;
|
2018-11-22 04:34:26 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://golang.org";
|
2018-11-22 04:34:26 +00:00
|
|
|
description = "Linter for Go source code";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jhillyerd ];
|
|
|
|
};
|
2016-06-04 13:35:09 +01:00
|
|
|
}
|