gocode-gomod: 2019-03-27 -> 1.0.0
This commit is contained in:
parent
1c3e3e081c
commit
06d0a781d8
@ -1,11 +1,8 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "gocode-gomod-unstable";
|
||||
version = "2019-03-27";
|
||||
rev = "81059208699789f992bb4a4a3fedd734e335468d";
|
||||
|
||||
goPackagePath = "github.com/stamblerre/gocode";
|
||||
buildGoModule rec {
|
||||
pname = "gocode-gomod";
|
||||
version = "1.0.0";
|
||||
|
||||
# we must allow references to the original `go` package,
|
||||
# because `gocode` needs to dig into $GOROOT to provide completions for the
|
||||
@ -15,15 +12,12 @@ buildGoPackage rec {
|
||||
excludedPackages = ''internal/suggest/testdata'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
|
||||
owner = "stamblerre";
|
||||
repo = "gocode";
|
||||
sha256 = "0y5lc7sq3913mvvczwx8mq5l3l9yg34jzaw742q8jpd1jzqyza94";
|
||||
rev = "v${version}";
|
||||
sha256 = "YAOYrPPKgnjCErq8+iW0Le51clGBv0MJy2Nnn7UVo/s=";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/gocode $out/bin/gocode-gomod
|
||||
'';
|
||||
|
11
pkgs/development/tools/gocode-gomod/deps.nix
generated
11
pkgs/development/tools/gocode-gomod/deps.nix
generated
@ -1,11 +0,0 @@
|
||||
[
|
||||
{
|
||||
goPackagePath = "golang.org/x/tools";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/tools";
|
||||
rev = "78dc5bac0cacea7969e98b79c3b86597e0aa4e25";
|
||||
sha256 = "16jg2x1sfm39kz4rchn0gxyq99fnkxw6v51wxriqbs76a2wrznp9";
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user