2015-02-04 11:37:17 +01:00
|
|
|
{ lib, goPackages, fetchFromGitHub }:
|
2014-10-10 15:27:44 +02:00
|
|
|
|
2015-02-04 11:37:17 +01:00
|
|
|
with goPackages;
|
2014-10-10 15:27:44 +02:00
|
|
|
|
2015-02-04 11:37:17 +01:00
|
|
|
buildGoPackage rec {
|
|
|
|
rev = "8ca23475bcb43213a55dd8210b69363f6b0e09c1";
|
|
|
|
name = "golint-${lib.strings.substring 0 7 rev}";
|
|
|
|
goPackagePath = "github.com/golang/lint";
|
2014-10-10 15:27:44 +02:00
|
|
|
|
2015-02-04 11:37:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "golang";
|
|
|
|
repo = "lint";
|
|
|
|
sha256 = "16wbykik6dw3x9s7iqi4ln8kvzsh3g621wb8mk4nfldw7lyqp3cs";
|
|
|
|
};
|
2014-10-10 15:27:44 +02:00
|
|
|
|
2015-02-04 11:37:17 +01:00
|
|
|
subPackages = [ "golint" ];
|
2014-10-10 15:27:44 +02:00
|
|
|
|
2015-02-05 18:07:28 +01:00
|
|
|
dontInstallSrc = true;
|
|
|
|
|
2014-10-10 15:27:44 +02:00
|
|
|
meta = with lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Linter for Go source code";
|
2014-10-10 15:27:44 +02:00
|
|
|
homepage = https://github.com/golang/lint;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|