about summary refs log tree commit diff
path: root/pkgs/development/tools/gocode/default.nix
blob: a20e1658988c6f5aed25a98d45396271b91f4d08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, buildGoPackage, fetchgit }:

buildGoPackage rec {
  name = "gocode-${version}";
  version = "20170903-${stdenv.lib.strings.substring 0 7 rev}";
  rev = "c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1";

  goPackagePath = "github.com/nsf/gocode";

  # 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;

  src = fetchgit {
    inherit rev;
    url = "https://github.com/nsf/gocode";
    sha256 = "0qx8pq38faig41xkl1a4hrgp3ziyjyn6g53vn5wj7cdgm5kk67nb";
  };
}