nixpkgs/pkgs/by-name/go/gopls/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
982 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-04-23 08:41:04 +01:00
buildGoModule rec {
2020-04-23 08:41:04 +01:00
pname = "gopls";
version = "0.16.2";
2020-04-23 08:41:04 +01:00
src = fetchFromGitHub {
owner = "golang";
repo = "tools";
rev = "gopls/v${version}";
hash = "sha256-amy00VMUcmyjDoZ4d9/+YswfcZ+1/cGvFsA4sAmc1dA=";
2020-04-23 08:41:04 +01:00
};
modRoot = "gopls";
vendorHash = "sha256-ta94xPboFtSxFeuMtPX76XiC1O7osNl4oLk64wIyyz4=";
2020-04-23 08:41:04 +01:00
# https://github.com/golang/tools/blob/9ed98faa/gopls/main.go#L27-L30
ldflags = [ "-X main.version=v${version}" ];
doCheck = false;
# Only build gopls, and not the integration tests or documentation generator.
subPackages = [ "." ];
meta = with lib; {
2020-04-23 08:41:04 +01:00
description = "Official language server for the Go language";
homepage = "https://github.com/golang/tools/tree/master/gopls";
changelog = "https://github.com/golang/tools/releases/tag/${src.rev}";
2020-04-23 08:41:04 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ mic92 rski SuperSandro2000 zimbatm ];
2023-09-28 21:46:02 +01:00
mainProgram = "gopls";
2020-04-23 08:41:04 +01:00
};
2020-07-16 13:32:18 +01:00
}