gotools: 2019-06-03 -> 2019-07-06 (#64335)

gotools: 2019-06-03 -> 2019-07-06
This commit is contained in:
Wael Nasreddine 2019-07-07 12:56:19 -07:00 committed by GitHub
commit 1aa0f1feb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,16 +2,26 @@
buildGoModule rec {
name = "gotools-unstable-${version}";
version = "2019-06-03";
rev = "8aaa1484dc108aa23dcf2d4a09371c0c9e280f6b";
version = "2019-07-06";
rev = "72ffa07ba3db8d09f5215feec0f89464f3028f8e";
src = fetchgit {
inherit rev;
url = "https://go.googlesource.com/tools";
sha256 = "0sa41fi38b6pvz7jjr6vqrd152qjvmbcagm1qdxw41vqcdw3ljx3";
sha256 = "0c0s5aiwj807vxfzwrah32spwq8cnxvy0j117i5cbsqw2df80pgv";
};
modSha256 = "0cm7fwb1k5hvbhh86kagzsw5vwgkr6dr7glhbjxg5xaahlhx2w5w";
# Build of golang.org/x/tools/gopls fails with:
# can't load package: package golang.org/x/tools/gopls: unknown import path "golang.org/x/tools/gopls": cannot find module providing package golang.org/x/tools/gopls
# That is most probably caused by golang.org/x/tools/gopls containing a separate Go module.
# In order to fix this, we simply remove the module.
# Note that build of golang.org/x/tools/cmd/gopls provides identical binary as golang.org/x/tools/gopls.
# See https://github.com/NixOS/nixpkgs/pull/64335.
postPatch = ''
rm -rf gopls
'';
modSha256 = "16nkrpki9fnxsrxxxs9ljz49plcz393z0sqq2knkk30pmncpwd3q";
postConfigure = ''
# Make the builtin tools available here