2021-10-21 10:18:15 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-23 09:41:04 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gopls";
|
2021-10-20 16:47:30 +02:00
|
|
|
version = "0.7.3";
|
2020-04-23 09:41:04 +02:00
|
|
|
|
2021-10-21 10:18:15 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = "tools";
|
2021-10-20 16:47:30 +02:00
|
|
|
rev = "gopls/v${version}";
|
|
|
|
sha256 = "sha256-aaRaStQ35a/SK4YIR5rjvp8gPxvoNuhLh2AGbr0c6p4=";
|
2020-04-23 09:41:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
modRoot = "gopls";
|
2021-10-20 16:47:30 +02:00
|
|
|
vendorSha256 = "sha256-8+sWd48w+ghQzznobBPcCQMuc9HLgOuAZPwD6lbbfj8=";
|
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;
|
2021-10-20 16:47:30 +02:00
|
|
|
maintainers = with maintainers; [ mic92 SuperSandro2000 zimbatm ];
|
2020-04-23 09:41:04 +02:00
|
|
|
};
|
2020-07-16 14:32:18 +02:00
|
|
|
}
|