Skip to content

Commit 5544e59

Browse files
hcp: init at 0.8.0 (#370162)
2 parents fce7e64 + 845e0e7 commit 5544e59

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5377,6 +5377,12 @@
53775377
githubId = 175485311;
53785378
name = "D. Brasher";
53795379
};
5380+
dbreyfogle = {
5381+
email = "[email protected]";
5382+
github = "dbreyfogle";
5383+
githubId = 27653146;
5384+
name = "Danny Breyfogle";
5385+
};
53805386
dbrgn = {
53815387
email = "[email protected]";
53825388
github = "dbrgn";

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)