From 72d93a842dd0baa4ca6d128bfff485b448c2d048 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Tue, 7 Jan 2025 00:29:44 -0500 Subject: [PATCH] hcdiag: init at 0.5.5 Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/hc/hcdiag/package.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/hc/hcdiag/package.nix diff --git a/pkgs/by-name/hc/hcdiag/package.nix b/pkgs/by-name/hc/hcdiag/package.nix new file mode 100644 index 0000000000000..e576d67d20450 --- /dev/null +++ b/pkgs/by-name/hc/hcdiag/package.nix @@ -0,0 +1,28 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "hcdiag"; + version = "0.5.5"; + + src = fetchFromGitHub { + owner = "hashicorp"; + repo = "hcdiag"; + tag = "v${version}"; + hash = "sha256-ZzSGBw7DRh/VSDtXoMgJpGWVmJUF2G2yZaae+fKklMc="; + }; + + vendorHash = "sha256-MJg6mqG1bn941LqIr0TQhcgWBCwUtfujdpqf4rgCrWM="; + + meta = { + description = "Collects and bundles product and platform diagnostics supporting Consul, Nomad, TFE, and Vault."; + homepage = "https://github.com/hashicorp/hcdiag"; + changelog = "https://github.com/hashicorp/hcdiag/raw/v${version}/CHANGELOG.md"; + license = lib.licenses.mpl20; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + }; +}