gocode: 2018-07-27 -> 2018-10-22 (#48832)

github.com/nsf/gocode has also been deprecated in favor of github.com/mdempsky/gocode
This commit is contained in:
Wael Nasreddine 2018-10-23 03:14:55 -07:00 committed by xeji
parent 6f00276171
commit cc4b9ef40f
2 changed files with 19 additions and 5 deletions

View File

@ -1,9 +1,9 @@
{ stdenv, buildGoPackage, fetchFromGitHub }: { stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec { buildGoPackage rec {
name = "gocode-${version}"; name = "gocode-unstable-${version}";
version = "20180727-${stdenv.lib.strings.substring 0 7 rev}"; version = "2018-10-22";
rev = "00e7f5ac290aeb20a3d8d31e737ae560a191a1d5"; rev = "e893215113e5f7594faa3a8eb176c2700c921276";
goPackagePath = "github.com/mdempsky/gocode"; goPackagePath = "github.com/mdempsky/gocode";
@ -13,12 +13,15 @@ buildGoPackage rec {
allowGoReference = true; allowGoReference = true;
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev;
owner = "mdempsky"; owner = "mdempsky";
repo = "gocode"; repo = "gocode";
inherit rev; sha256 = "1zsll7yghv64890k7skl0g2lg9rsaiisgrfnb8kshsxrcxi1kc2l";
sha256 = "0vrwjq4r90za47hm88yx5h2mvkv7y4yaj2xbx3skg62wq2drsq31";
}; };
goDeps = ./deps.nix;
preBuild = '' preBuild = ''
# getting an error building the testdata because they contain invalid files # getting an error building the testdata because they contain invalid files
# on purpose as part of the testing. # on purpose as part of the testing.

11
pkgs/development/tools/gocode/deps.nix generated Normal file
View File

@ -0,0 +1,11 @@
[
{
goPackagePath = "golang.org/x/tools";
fetch = {
type = "git";
url = "https://go.googlesource.com/tools";
rev = "6fe81c087942f588f40c3f67b41ce284f2f70eee";
sha256 = "04yl7rk2lf94bxz74ja5snh7ava9gcnf2yx6y002pfkk538r6w5d";
};
}
]