biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / go / gopls / package.nix
blobb9f44017da96ae9dadfeffad8f553ddd9857120c
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "gopls";
5   version = "0.16.2";
7   src = fetchFromGitHub {
8     owner = "golang";
9     repo = "tools";
10     rev = "gopls/v${version}";
11     hash = "sha256-amy00VMUcmyjDoZ4d9/+YswfcZ+1/cGvFsA4sAmc1dA=";
12   };
14   modRoot = "gopls";
15   vendorHash = "sha256-ta94xPboFtSxFeuMtPX76XiC1O7osNl4oLk64wIyyz4=";
17   # https://github.com/golang/tools/blob/9ed98faa/gopls/main.go#L27-L30
18   ldflags = [ "-X main.version=v${version}" ];
20   doCheck = false;
22   # Only build gopls, and not the integration tests or documentation generator.
23   subPackages = [ "." ];
25   meta = with lib; {
26     description = "Official language server for the Go language";
27     homepage = "https://github.com/golang/tools/tree/master/gopls";
28     changelog = "https://github.com/golang/tools/releases/tag/${src.rev}";
29     license = licenses.bsd3;
30     maintainers = with maintainers; [ mic92 rski SuperSandro2000 zimbatm ];
31     mainProgram = "gopls";
32   };