gocode-gomod: 2019-03-27 -> 1.0.0

This commit is contained in:
Jaka Hudoklin 2020-05-29 20:24:21 +07:00
parent 1c3e3e081c
commit 06d0a781d8
2 changed files with 6 additions and 23 deletions

View file

@ -1,11 +1,8 @@
{ stdenv, buildGoPackage, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "gocode-gomod-unstable"; pname = "gocode-gomod";
version = "2019-03-27"; version = "1.0.0";
rev = "81059208699789f992bb4a4a3fedd734e335468d";
goPackagePath = "github.com/stamblerre/gocode";
# we must allow references to the original `go` package, # we must allow references to the original `go` package,
# because `gocode` needs to dig into $GOROOT to provide completions for the # because `gocode` needs to dig into $GOROOT to provide completions for the
@ -15,15 +12,12 @@ buildGoPackage rec {
excludedPackages = ''internal/suggest/testdata''; excludedPackages = ''internal/suggest/testdata'';
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev;
owner = "stamblerre"; owner = "stamblerre";
repo = "gocode"; repo = "gocode";
sha256 = "0y5lc7sq3913mvvczwx8mq5l3l9yg34jzaw742q8jpd1jzqyza94"; rev = "v${version}";
sha256 = "YAOYrPPKgnjCErq8+iW0Le51clGBv0MJy2Nnn7UVo/s=";
}; };
goDeps = ./deps.nix;
postInstall = '' postInstall = ''
mv $out/bin/gocode $out/bin/gocode-gomod mv $out/bin/gocode $out/bin/gocode-gomod
''; '';

View file

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