2022-03-19 02:34:02 +00:00
|
|
|
{ lib, buildGo118Module, fetchFromGitHub }:
|
2020-04-23 07:41:04 +00:00
|
|
|
|
2022-03-19 02:34:02 +00:00
|
|
|
buildGo118Module rec {
|
2020-04-23 07:41:04 +00:00
|
|
|
pname = "gopls";
|
2022-03-19 02:34:02 +00:00
|
|
|
version = "0.8.1";
|
2020-04-23 07:41:04 +00:00
|
|
|
|
2021-10-21 08:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = "tools";
|
2021-10-20 14:47:30 +00:00
|
|
|
rev = "gopls/v${version}";
|
2022-03-19 02:34:02 +00:00
|
|
|
sha256 = "sha256-ypuZQt6iF1QRk/FsoTKnJlb5CWIEkvK7r37t4rSxhmU=";
|
2020-04-23 07:41:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
modRoot = "gopls";
|
2022-03-19 02:34:02 +00:00
|
|
|
vendorSha256 = "sha256-SY08322wuJl8F790oXGmYo82Yadi14kDpoVGCGVMF0c=";
|
2020-04-23 07:41:04 +00:00
|
|
|
|
2020-08-04 00:26:27 +00: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 07:41:04 +00:00
|
|
|
description = "Official language server for the Go language";
|
|
|
|
homepage = "https://github.com/golang/tools/tree/master/gopls";
|
|
|
|
license = licenses.bsd3;
|
2021-10-20 14:47:30 +00:00
|
|
|
maintainers = with maintainers; [ mic92 SuperSandro2000 zimbatm ];
|
2020-04-23 07:41:04 +00:00
|
|
|
};
|
2020-07-16 12:32:18 +00:00
|
|
|
}
|