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