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
Danny Breyfogle committed Jan 2, 2025
1 parent af5da25 commit 3e5909b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/hc/hcp/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
lib,
buildGoModule,
fetchFromGitHub,
hcp,
}:

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

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

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

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

meta = with lib; {
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 = [ licenses.mpl20 ];
maintainers = with maintainers; [
dbreyfogle
];
};
}

0 comments on commit 3e5909b

Please sign in to comment.