From 8cf568481419b470d6cb76ef819fe7471f78dd58 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 4 Jan 2018 19:27:02 +0100 Subject: [PATCH] gopkgs: init at 2017-12-29 Signed-off-by: Vincent Demeester --- pkgs/development/tools/gopkgs/default.nix | 24 +++++++++++++++++++++++ pkgs/development/tools/gopkgs/deps.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 pkgs/development/tools/gopkgs/default.nix create mode 100644 pkgs/development/tools/gopkgs/deps.nix diff --git a/pkgs/development/tools/gopkgs/default.nix b/pkgs/development/tools/gopkgs/default.nix new file mode 100644 index 000000000000..298657fe38c5 --- /dev/null +++ b/pkgs/development/tools/gopkgs/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "gopkgs-${version}"; + version = "unstable-2017-12-29"; + rev = "b2ea2ecd37740e6ce0e020317d90c729aab4dc6d"; + + goPackagePath = "github.com/uudashr/gopkgs"; + goDeps = ./deps.nix; + + src = fetchFromGitHub { + inherit rev; + owner = "uudashr"; + repo = "gopkgs"; + sha256 = "1hwzxrf2h8xjbbx6l86mjpjh4csxxsy17zkh8h3qzncyfnsnczzg"; + }; + + meta = { + description = "Tool to get list available Go packages."; + homepage = https://github.com/uudashr/gopkgs; + maintainers = with stdenv.lib.maintainers; [ vdemeester ]; + license = stdenv.lib.licenses.mit; + }; +} diff --git a/pkgs/development/tools/gopkgs/deps.nix b/pkgs/development/tools/gopkgs/deps.nix new file mode 100644 index 000000000000..0f72ee3e5e0f --- /dev/null +++ b/pkgs/development/tools/gopkgs/deps.nix @@ -0,0 +1,11 @@ +[ + { + goPackagePath = "github.com/MichaelTJones/walk"; + fetch = { + type = "git"; + url = "https://github.com/MichaelTJones/walk"; + rev = "4748e29d5718c2df4028a6543edf86fd8cc0f881"; + sha256 = "03bc3cql3w8cx05xlnzxsff59c6679rcpx4njzk86k00blkkizv7"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25373f63212c..b1295d943f30 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13389,6 +13389,8 @@ with pkgs; goimports = callPackage ../development/tools/goimports { }; + gopkgs = callPackage ../development/tools/gopkgs { }; + govers = callPackage ../development/tools/govers { }; gotools = callPackage ../development/tools/gotools { };