File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments