Skip to content

Commit

Permalink
hcp: init at 0.8.0 (#370162)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 22, 2025
2 parents fce7e64 + 845e0e7 commit 5544e59
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5377,6 +5377,12 @@
githubId = 175485311;
name = "D. Brasher";
};
dbreyfogle = {
email = "[email protected]";
github = "dbreyfogle";
githubId = 27653146;
name = "Danny Breyfogle";
};
dbrgn = {
email = "[email protected]";
github = "dbrgn";
Expand Down
38 changes: 38 additions & 0 deletions pkgs/by-name/hc/hcp/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
hcp,
}:

buildGoModule rec {
pname = "hcp";
version = "0.8.0";

src = fetchFromGitHub {
owner = "hashicorp";
repo = "hcp";
tag = "v${version}";
hash = "sha256-YOOaQh1OsRn5EV9RmUdWWdHx5bMFC+a1qFzUGb6lpew=";
};

vendorHash = "sha256-/Nf180odZB5X3Fj4cfz0TdYEfGKtkkh4qI9eRfz+meQ=";

preCheck = ''
export HOME=$TMPDIR
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "HashiCorp Cloud Platform CLI";
homepage = "https://github.com/hashicorp/hcp";
changelog = "https://github.com/hashicorp/hcp/releases/tag/v${version}";
mainProgram = "hcp";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
dbreyfogle
];
};
}

0 comments on commit 5544e59

Please sign in to comment.