2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchgit }:
|
2020-04-23 09:41:04 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gopls";
|
2021-01-07 19:38:46 +01:00
|
|
|
version = "0.6.2";
|
2020-04-23 09:41:04 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = "gopls/v${version}";
|
|
|
|
url = "https://go.googlesource.com/tools";
|
2021-01-07 19:38:46 +01:00
|
|
|
sha256 = "0hbfxdsbfz044vw8zp223ni6m7gcwqpff4xpjiqmihhgga5849lf";
|
2020-04-23 09:41:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
modRoot = "gopls";
|
2021-01-07 19:38:46 +01:00
|
|
|
vendorSha256 = "0r9bffgi9ainqrl4kraqy71rgwdfcbqmv3srs12h3xvj0w5ya5rz";
|
2020-04-23 09:41:04 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-28 23:42:07 +01:00
|
|
|
# Only build gopls, and not the integration tests or documentation generator.
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-23 09:41:04 +02:00
|
|
|
description = "Official language server for the Go language";
|
|
|
|
homepage = "https://github.com/golang/tools/tree/master/gopls";
|
|
|
|
license = licenses.bsd3;
|
2020-07-16 14:32:18 +02:00
|
|
|
maintainers = with maintainers; [ mic92 zimbatm ];
|
2020-04-23 09:41:04 +02:00
|
|
|
};
|
2020-07-16 14:32:18 +02:00
|
|
|
}
|