Skip to content

Commit

Permalink
hcp: init at 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbreyfogle committed Jan 7, 2025
1 parent 2ff2562 commit 1905659
Showing 1 changed file with 38 additions and 0 deletions.
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,
gitUpdater,
hcp,
}:

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

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

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

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

passthru.updateScript = gitUpdater { rev-prefix = "v"; };

meta = {
description = "HCP Command-Line Interface";
homepage = "https://github.com/hashicorp/hcp";
changelog = "https://github.com/hashicorp/hcp/raw/v${version}/CHANGELOG.md";
mainProgram = "hcp";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
dbreyfogle
];
};
}

0 comments on commit 1905659

Please sign in to comment.