gocode: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-04 14:01:13 +02:00
parent 4ddfe1fc40
commit dc2bb06a1b
3 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,18 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "gocode-${version}";
version = "20150904-${stdenv.lib.strings.substring 0 7 rev}";
rev = "680a0fbae5119fb0dbea5dca1d89e02747a80de0";
goPackagePath = "github.com/nsf/gocode";
src = fetchgit {
inherit rev;
url = "https://github.com/nsf/gocode";
sha256 = "1ay2xakz4bcn8r3ylicbj753gjljvv4cj9l4wfly55cj1vjybjpv";
};
}

View File

@ -11151,7 +11151,7 @@ in
inherit (gnome) gtk gtkmm;
};
gocode = goPackages.gocode.bin // { outputs = [ "bin" ]; };
gocode = callPackage ../development/tools/gocode { };
kgocode = callPackage ../applications/misc/kgocode {
inherit (pkgs.kde4) kdelibs;

View File

@ -1063,14 +1063,6 @@ let
propagatedBuildInputs = [ inf snappy groupcache ];
};
gocode = buildFromGitHub {
rev = "680a0fbae5119fb0dbea5dca1d89e02747a80de0";
version = "2015-09-03";
owner = "nsf";
repo = "gocode";
sha256 = "1ay2xakz4bcn8r3ylicbj753gjljvv4cj9l4wfly55cj1vjybjpv";
};
gocolorize = buildGoPackage rec {
rev = "v1.0.0";
name = "gocolorize-${rev}";