From 5c410b94b5b92fb0290fc3360f56bff4c1f3014e Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 4 Jan 2018 19:02:21 +0100 Subject: [PATCH] go-outline: init at 2017-08-04 Signed-off-by: Vincent Demeester --- pkgs/development/tools/go-outline/default.nix | 24 +++++++++++++++++++ pkgs/development/tools/go-outline/deps.nix | 11 +++++++++ pkgs/top-level/all-packages.nix | 3 +++ 3 files changed, 38 insertions(+) create mode 100644 pkgs/development/tools/go-outline/default.nix create mode 100644 pkgs/development/tools/go-outline/deps.nix diff --git a/pkgs/development/tools/go-outline/default.nix b/pkgs/development/tools/go-outline/default.nix new file mode 100644 index 000000000000..fe159c85c3d6 --- /dev/null +++ b/pkgs/development/tools/go-outline/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "go-outline-${version}"; + version = "unstable-2017-08-04"; + rev = "9e9d089bb61a5ce4f8e0c8d8dc5b4e41b0e02a48"; + + goPackagePath = "github.com/ramya-rao-a/go-outline"; + goDeps = ./deps.nix; + + src = fetchFromGitHub { + inherit rev; + owner = "ramya-rao-a"; + repo = "go-outline"; + sha256 = "0kbkv4d6q9w0d41m00sqdm10l0sg56mv8y6rmidqs152mm2w13x0"; + }; + + meta = { + description = "Utility to extract JSON representation of declarations from a Go source file."; + homepage = https://github.com/ramya-rao-a/go-outline; + maintainers = with stdenv.lib.maintainers; [ vdemeester ]; + license = stdenv.lib.licenses.mit; + }; +} diff --git a/pkgs/development/tools/go-outline/deps.nix b/pkgs/development/tools/go-outline/deps.nix new file mode 100644 index 000000000000..6a333b58bec6 --- /dev/null +++ b/pkgs/development/tools/go-outline/deps.nix @@ -0,0 +1,11 @@ +[ + { + goPackagePath = "golang.org/x/tools"; + fetch = { + type = "git"; + url = "https://github.com/golang/tools"; + rev = "96b5a5404f303f074e6117d832a9873c439508f0"; + sha256 = "1h6r9xyp1v3w2x8d108vzghn65l6ia2h895irypmrwymfcp30y42"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25373f63212c..d40feb0b2f51 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13373,8 +13373,11 @@ with pkgs; go-protobuf = callPackage ../development/tools/go-protobuf { }; + go-symbols = callPackage ../development/tools/go-symbols { }; + go-outline = callPackage ../development/tools/go-outline { }; + gocode = callPackage ../development/tools/gocode { }; goconvey = callPackage ../development/tools/goconvey { };