2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchgit }:
|
2016-06-04 14:35:09 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "lint-${version}";
|
2018-11-22 05:34:26 +01:00
|
|
|
version = "20181026-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "c67002cb31c3a748b7688c27f20d8358b4193582";
|
2016-06-04 14:35:09 +02:00
|
|
|
|
2018-11-22 05:34:26 +01:00
|
|
|
goPackagePath = "golang.org/x/lint";
|
2016-06-04 14:35:09 +02:00
|
|
|
excludedPackages = "testdata";
|
|
|
|
|
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";
|
|
|
|
sha256 = "0gymbggskjmphqxqcx4s0vnlcz7mygbix0vhwcwv5r67c0bf6765";
|
2016-06-04 14:35:09 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2018-11-22 05:34:26 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://golang.org;
|
|
|
|
description = "Linter for Go source code";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jhillyerd ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2016-06-04 14:35:09 +02:00
|
|
|
}
|