1 { lib, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
10 rev = "gopls/v${version}";
11 hash = "sha256-amy00VMUcmyjDoZ4d9/+YswfcZ+1/cGvFsA4sAmc1dA=";
15 vendorHash = "sha256-ta94xPboFtSxFeuMtPX76XiC1O7osNl4oLk64wIyyz4=";
17 # https://github.com/golang/tools/blob/9ed98faa/gopls/main.go#L27-L30
18 ldflags = [ "-X main.version=v${version}" ];
22 # Only build gopls, and not the integration tests or documentation generator.
23 subPackages = [ "." ];
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";