2021-03-02 05:40:34 +00:00
|
|
|
{ lib, buildGoModule, fetchgit }:
|
2016-06-04 12:35:09 +00:00
|
|
|
|
2021-03-02 05:40:34 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lint";
|
2021-03-02 05:40:34 +00:00
|
|
|
version = "20201208-${lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "83fdc39ff7b56453e3793356bcff3070b9b96445";
|
2020-07-31 04:07:43 +00:00
|
|
|
|
2016-06-04 12:35:09 +00: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 12:35:09 +00:00
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
2018-11-22 04:34:26 +00:00
|
|
|
url = "https://go.googlesource.com/lint";
|
2021-03-02 05:40:34 +00:00
|
|
|
sha256 = "sha256-g4Z9PREOxGoN7n/XhutawsITBznJlbz6StXeDYvOQ1c=";
|
2016-06-04 12:35:09 +00:00
|
|
|
};
|
|
|
|
|
2021-03-02 05:40:34 +00:00
|
|
|
vendorSha256 = "sha256-dPadFoymYu2Uw2AXZfbaBfxsN8IWMuK1TrcknHco3Bo=";
|
2018-11-22 04:34:26 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://golang.org";
|
2018-11-22 04:34:26 +00:00
|
|
|
description = "Linter for Go source code";
|
|
|
|
license = licenses.bsd3;
|
2021-03-02 05:40:34 +00:00
|
|
|
maintainers = with maintainers; [ jhillyerd tomberek ];
|
2018-11-22 04:34:26 +00:00
|
|
|
};
|
2016-06-04 12:35:09 +00:00
|
|
|
}
|