From 8c6088c0cec0a0acd45e3a4a57f729ec813be22a Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sat, 5 Sep 2015 00:15:02 -0700 Subject: [PATCH] gocode: Move to go-packages --- pkgs/development/tools/gocode/default.nix | 27 ----------------------- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/go-packages.nix | 8 +++++++ 3 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 pkgs/development/tools/gocode/default.nix diff --git a/pkgs/development/tools/gocode/default.nix b/pkgs/development/tools/gocode/default.nix deleted file mode 100644 index 96dc059ae3f4..000000000000 --- a/pkgs/development/tools/gocode/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ lib, goPackages, fetchFromGitHub }: - -with goPackages; - -buildGoPackage rec { - rev = "9b760fdb16f18eafbe0cd274527efd2bd89dfa78"; - name = "gocode-${lib.strings.substring 0 7 rev}"; - goPackagePath = "github.com/nsf/gocode"; - src = fetchFromGitHub { - inherit rev; - owner = "nsf"; - repo = "gocode"; - sha256 = "0d1wl0x8jkaav6lcfzs70cr6gy0p88cbk5n3p19l6d0h9xz464ax"; - }; - - subPackages = [ "./" ]; - - dontInstallSrc = true; - - meta = with lib; { - description = "An autocompletion daemon for the Go programming language"; - homepage = https://github.com/nsf/gocode; - license = licenses.mit; - maintainers = with maintainers; [ cstrahan ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 755d85f36de7..415fa8540dc3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10103,7 +10103,7 @@ let inherit (gnome) gtk gtkmm; }; - gocode = callPackage ../development/tools/gocode { }; + gocode = goPackages.gocode.bin // { outputs = [ "bin" ]; }; gotags = callPackage ../development/tools/gotags { }; diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index a998f231e52e..8cf57eb71642 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -767,6 +767,14 @@ let propagatedBuildInputs = [ inf snappy groupcache ]; }; + gocode = buildFromGitHub { + rev = "680a0fbae5119fb0dbea5dca1d89e02747a80de0"; + date = "2015-09-03"; + owner = "nsf"; + repo = "gocode"; + sha256 = "1ay2xakz4bcn8r3ylicbj753gjljvv4cj9l4wfly55cj1vjybjpv"; + }; + gocolorize = buildGoPackage rec { rev = "v1.0.0"; name = "gocolorize-${rev}";