From d370e1cf98fc41b5a550135d173e6dec157a94b8 Mon Sep 17 00:00:00 2001 From: aleksana Date: Thu, 25 May 2023 00:26:21 +0800 Subject: [PATCH] go-mod-graph-chart: init at 0.5.3 --- .../tools/go-mod-graph-chart/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/go-mod-graph-chart/default.nix diff --git a/pkgs/development/tools/go-mod-graph-chart/default.nix b/pkgs/development/tools/go-mod-graph-chart/default.nix new file mode 100644 index 000000000000..11f7f4c6d9cf --- /dev/null +++ b/pkgs/development/tools/go-mod-graph-chart/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "go-mod-graph-chart"; + version = "0.5.3"; + + src = fetchFromGitHub { + owner = "PaulXu-cn"; + repo = pname; + rev = "v${version}"; + hash = "sha256-vitUZXQyAj72ed9Gukr/sAT/iWWMhwsxjZhf2a9CM7I="; + }; + + vendorHash = null; + + # check requires opening webpage + doCheck = false; + + meta = with lib; { + description = "A tool build chart by go mod graph output with zero dependencies"; + homepage = "https://github.com/PaulXu-cn/go-mod-graph-chart"; + mainProgram = "gmchart"; + license = licenses.mit; + maintainers = with maintainers; [ aleksana ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b40f367bea9f..7a1379ca83ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27350,6 +27350,8 @@ with pkgs; go-mockery = callPackage ../development/tools/go-mockery { }; + go-mod-graph-chart = callPackage ../development/tools/go-mod-graph-chart { }; + gomacro = callPackage ../development/tools/gomacro { }; gomodifytags = callPackage ../development/tools/gomodifytags { };