2018-07-21 03:44:44 +03:00
|
|
|
{ stdenv, buildGoPackage, fetchgit }:
|
2016-06-04 15:01:13 +03:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "gocode-${version}";
|
2017-09-18 18:53:25 +03:00
|
|
|
version = "20170903-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1";
|
2017-07-26 09:28:49 +03:00
|
|
|
|
2016-06-04 15:01:13 +03:00
|
|
|
goPackagePath = "github.com/nsf/gocode";
|
|
|
|
|
2017-07-26 09:28:49 +03:00
|
|
|
# we must allow references to the original `go` package,
|
|
|
|
# because `gocode` needs to dig into $GOROOT to provide completions for the
|
|
|
|
# standard packages.
|
|
|
|
allowGoReference = true;
|
|
|
|
|
2016-06-04 15:01:13 +03:00
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/nsf/gocode";
|
2017-09-18 18:53:25 +03:00
|
|
|
sha256 = "0qx8pq38faig41xkl1a4hrgp3ziyjyn6g53vn5wj7cdgm5kk67nb";
|
2016-06-04 15:01:13 +03:00
|
|
|
};
|
|
|
|
}
|