at 18.03-beta 20 lines 628 B view raw
1{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: 2 3buildGoPackage rec { 4 name = "gocode-${version}"; 5 version = "20170903-${stdenv.lib.strings.substring 0 7 rev}"; 6 rev = "c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1"; 7 8 goPackagePath = "github.com/nsf/gocode"; 9 10 # we must allow references to the original `go` package, 11 # because `gocode` needs to dig into $GOROOT to provide completions for the 12 # standard packages. 13 allowGoReference = true; 14 15 src = fetchgit { 16 inherit rev; 17 url = "https://github.com/nsf/gocode"; 18 sha256 = "0qx8pq38faig41xkl1a4hrgp3ziyjyn6g53vn5wj7cdgm5kk67nb"; 19 }; 20}