1 { lib, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
10 rev = "gopls/v${version}";
11 hash = "sha256-JUqw2qJFxiuZyXgrmirrOuwG9mtcW1e1+SS0CaZY8VA=";
15 vendorHash = "sha256-j2jMkVvsZ6UjcziSKtxGfwr7eRiTlEPW7LQCaEIa3I0=";
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";