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