Skip to content

Commit 845e0e7

Browse files
committed
hcp: init at 0.8.0
1 parent 2ff2562 commit 845e0e7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pkgs/by-name/hc/hcp/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
hcp,
7+
}:
8+
9+
buildGoModule rec {
10+
pname = "hcp";
11+
version = "0.8.0";
12+
13+
src = fetchFromGitHub {
14+
owner = "hashicorp";
15+
repo = "hcp";
16+
tag = "v${version}";
17+
hash = "sha256-YOOaQh1OsRn5EV9RmUdWWdHx5bMFC+a1qFzUGb6lpew=";
18+
};
19+
20+
vendorHash = "sha256-/Nf180odZB5X3Fj4cfz0TdYEfGKtkkh4qI9eRfz+meQ=";
21+
22+
preCheck = ''
23+
export HOME=$TMPDIR
24+
'';
25+
26+
passthru.updateScript = nix-update-script { };
27+
28+
meta = {
29+
description = "HashiCorp Cloud Platform CLI";
30+
homepage = "https://github.com/hashicorp/hcp";
31+
changelog = "https://github.com/hashicorp/hcp/releases/tag/v${version}";
32+
mainProgram = "hcp";
33+
license = lib.licenses.mpl20;
34+
maintainers = with lib.maintainers; [
35+
dbreyfogle
36+
];
37+
};
38+
}

0 commit comments

Comments
 (0)