1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/development/tools/gocode/default.nix
2017-09-18 17:53:25 +02:00

21 lines
628 B
Nix

{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
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";
};
}