golint: 20181026 -> 20201208

bump and use Go modules to build
This commit is contained in:
Thomas Bereknyei
2021-03-02 11:01:00 -05:00
committed by tomberek
parent c1d529dbb1
commit 2b558b7f0f
2 changed files with 7 additions and 20 deletions
+7 -8
View File
@@ -1,11 +1,10 @@
{ lib, buildGoPackage, fetchgit }:
{ lib, buildGoModule, fetchgit }:
buildGoPackage rec {
buildGoModule rec {
pname = "lint";
version = "20181026-${lib.strings.substring 0 7 rev}";
rev = "c67002cb31c3a748b7688c27f20d8358b4193582";
version = "20201208-${lib.strings.substring 0 7 rev}";
rev = "83fdc39ff7b56453e3793356bcff3070b9b96445";
goPackagePath = "golang.org/x/lint";
excludedPackages = "testdata";
# we must allow references to the original `go` package, as golint uses
@@ -15,15 +14,15 @@ buildGoPackage rec {
src = fetchgit {
inherit rev;
url = "https://go.googlesource.com/lint";
sha256 = "0gymbggskjmphqxqcx4s0vnlcz7mygbix0vhwcwv5r67c0bf6765";
sha256 = "sha256-g4Z9PREOxGoN7n/XhutawsITBznJlbz6StXeDYvOQ1c=";
};
goDeps = ./deps.nix;
vendorSha256 = "sha256-dPadFoymYu2Uw2AXZfbaBfxsN8IWMuK1TrcknHco3Bo=";
meta = with lib; {
homepage = "https://golang.org";
description = "Linter for Go source code";
license = licenses.bsd3;
maintainers = with maintainers; [ jhillyerd ];
maintainers = with maintainers; [ jhillyerd tomberek ];
};
}