From 684b41042a3e8d4a10fb681505eee882e33ef9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 23 Apr 2020 08:41:04 +0100 Subject: [PATCH] gopls: init at 0.4.0 --- pkgs/development/tools/gopls/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/gopls/default.nix diff --git a/pkgs/development/tools/gopls/default.nix b/pkgs/development/tools/gopls/default.nix new file mode 100644 index 000000000000..77fd195b1abf --- /dev/null +++ b/pkgs/development/tools/gopls/default.nix @@ -0,0 +1,23 @@ +{ stdenv, go, buildGoModule, fetchgit }: + +buildGoModule rec { + pname = "gopls"; + version = "0.4.0"; + rev = "72e4a01eba4315301fd9ce00c8c2f492580ded8a"; + + src = fetchgit { + rev = "gopls/v${version}"; + url = "https://go.googlesource.com/tools"; + sha256 = "1sn6f638hgqpyd8rfyal3y6i6p21x4340jnhsvmgcd8lph49pplb"; + }; + + modRoot = "gopls"; + modSha256 = "1p0g28i707xyxz1g6hb56qlc4km9ik7vjky0v80hw7n73vzs5mr9"; + + meta = with stdenv.lib; { + description = "Official language server for the Go language"; + homepage = "https://github.com/golang/tools/tree/master/gopls"; + license = licenses.bsd3; + maintainers = with maintainers; [ mic92 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4c3019ff376..2c3b2cc0a11c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17265,6 +17265,8 @@ in go-langserver = callPackage ../development/tools/go-langserver { }; + gopls = callPackage ../development/tools/gopls { }; + gotests = callPackage ../development/tools/gotests { }; gotestsum = callPackage ../development/tools/gotestsum {