2016-06-06 00:28:52 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
2016-06-04 12:01:13 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "gocode-${version}";
|
2017-07-26 06:28:49 +00:00
|
|
|
version = "20170530-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "f1eef9a6ba005abb145d7b58fdd225e83a3c6a05";
|
|
|
|
|
2016-06-04 12:01:13 +00:00
|
|
|
goPackagePath = "github.com/nsf/gocode";
|
|
|
|
|
2017-07-26 06:28:49 +00: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 12:01:13 +00:00
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/nsf/gocode";
|
2017-07-26 06:28:49 +00:00
|
|
|
sha256 = "1hkr46ikrprx203i2yr6xds1bzxggblh7bg026m2cda6dxgpnsgw";
|
2016-06-04 12:01:13 +00:00
|
|
|
};
|
|
|
|
}
|