git.iko.soy/typeable/nixpkgs
on master help sign in
gocode: 2018-07-27 -> 2018-10-22 (#48832)

github.com/nsf/gocode has also been deprecated in favor of github.com/mdempsky/gocode

commitcc4b9ef40f2f891f56968af1163588b649c043e5 authorWael Nasreddine <wael.nasreddine@gmail.com> dateTue 23 Oct 2018, 03:14 (8 years ago) parent6f00276
2 files changed+19−5
pkgs/development/tools/gocode/default.nix+8−5 pkgs/development/tools/gocode/deps.nix+11
pkgs/development/tools/gocode/default.nix+8−5
@@ -1,9 +1,9 @@
11{ stdenv, buildGoPackage, fetchFromGitHub }:
22
33buildGoPackage rec {
4− name = "gocode-${version}";
5− version = "20180727-${stdenv.lib.strings.substring 0 7 rev}";
6− rev = "00e7f5ac290aeb20a3d8d31e737ae560a191a1d5";
4+ name = "gocode-unstable-${version}";
5+ version = "2018-10-22";
6+ rev = "e893215113e5f7594faa3a8eb176c2700c921276";
77
88 goPackagePath = "github.com/mdempsky/gocode";
99
@@ -13,12 +13,15 @@ buildGoPackage rec {
1313 allowGoReference = true;
1414
1515 src = fetchFromGitHub {
16+ inherit rev;
17+
1618 owner = "mdempsky";
1719 repo = "gocode";
18− inherit rev;
19− sha256 = "0vrwjq4r90za47hm88yx5h2mvkv7y4yaj2xbx3skg62wq2drsq31";
20+ sha256 = "1zsll7yghv64890k7skl0g2lg9rsaiisgrfnb8kshsxrcxi1kc2l";
2021 };
2122
23+ goDeps = ./deps.nix;
24+
2225 preBuild = ''
2326 # getting an error building the testdata because they contain invalid files
2427 # on purpose as part of the testing.
pkgs/development/tools/gocode/deps.nixnew file+11
@@ -0,0 +1,11 @@
1+[
2+ {
3+ goPackagePath = "golang.org/x/tools";
4+ fetch = {
5+ type = "git";
6+ url = "https://go.googlesource.com/tools";
7+ rev = "6fe81c087942f588f40c3f67b41ce284f2f70eee";
8+ sha256 = "04yl7rk2lf94bxz74ja5snh7ava9gcnf2yx6y002pfkk538r6w5d";
9+ };
10+ }
11+]