diff options
| author | Foster Hangdaan <foster@hangdaan.email> | 2026-06-17 05:13:56 -0400 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-17 23:30:48 +0100 |
| commit | 642655fa1f2c873f1a45cf8bc1b08814e003123d (patch) | |
| tree | 903db214ae73f10c369b64946b47e855aa826425 /gnu/packages/admin.scm | |
| parent | f03d72bf2ac9636d90fd7e1bc7e6684a549ed2d5 (diff) | |
gnu: hetznercloud-cli: Update to 1.65.0.
* gnu/packages/admin.scm (hetznercloud-cli): Update to 1.65.0.
[phases]{install-completions}: New phase for installing command
completions.
Merges: guix/guix!9353
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/admin.scm')
| -rw-r--r-- | gnu/packages/admin.scm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 7d506616cd6..d1c7a66ee15 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm | |||
| @@ -357,7 +357,7 @@ characters can be replaced as well, as can UTF-8 characters.") | |||
| 357 | (define-public hetznercloud-cli | 357 | (define-public hetznercloud-cli |
| 358 | (package | 358 | (package |
| 359 | (name "hetznercloud-cli") | 359 | (name "hetznercloud-cli") |
| 360 | (version "1.61.0") | 360 | (version "1.65.0") |
| 361 | (source | 361 | (source |
| 362 | (origin | 362 | (origin |
| 363 | (method git-fetch) | 363 | (method git-fetch) |
| @@ -366,7 +366,7 @@ characters can be replaced as well, as can UTF-8 characters.") | |||
| 366 | (commit (string-append "v" version)))) | 366 | (commit (string-append "v" version)))) |
| 367 | (file-name (git-file-name name version)) | 367 | (file-name (git-file-name name version)) |
| 368 | (sha256 | 368 | (sha256 |
| 369 | (base32 "1mwiqy05s43faxqv1llk242nikmgb09wy5i7m1kjvkjg0zzjn20s")))) | 369 | (base32 "1k9bx21v2783c30yysafn3w8kc8z5pvxx5qziib713dzf2b63xsx")))) |
| 370 | (build-system go-build-system) | 370 | (build-system go-build-system) |
| 371 | (arguments | 371 | (arguments |
| 372 | (list | 372 | (list |
| @@ -374,7 +374,21 @@ characters can be replaced as well, as can UTF-8 characters.") | |||
| 374 | #:install-source? #f | 374 | #:install-source? #f |
| 375 | #:import-path "github.com/hetznercloud/cli/cmd/hcloud" | 375 | #:import-path "github.com/hetznercloud/cli/cmd/hcloud" |
| 376 | #:unpack-path "github.com/hetznercloud/cli" | 376 | #:unpack-path "github.com/hetznercloud/cli" |
| 377 | #:test-subdirs #~(list "../../..."))) ;test the whole library | 377 | #:test-subdirs #~(list "../../...") ;test the whole library |
| 378 | #:phases | ||
| 379 | #~(modify-phases %standard-phases | ||
| 380 | (add-after 'install 'install-completions | ||
| 381 | (lambda _ | ||
| 382 | (define (install-completion shell file) | ||
| 383 | (let ((file (string-append #$output file))) | ||
| 384 | (mkdir-p (dirname file)) | ||
| 385 | (with-output-to-file file | ||
| 386 | (lambda _ | ||
| 387 | (invoke (string-append #$output "/bin/hcloud") | ||
| 388 | "completion" shell))))) | ||
| 389 | (install-completion "bash" "/share/bash-completion/completions/hcloud") | ||
| 390 | (install-completion "fish" "/share/fish/vendor_completions.d/hcloud.fish") | ||
| 391 | (install-completion "zsh" "/share/zsh/site-functions/_hcloud")))))) | ||
| 378 | (native-inputs | 392 | (native-inputs |
| 379 | (list go-github-com-burntsushi-toml | 393 | (list go-github-com-burntsushi-toml |
| 380 | go-github-com-cheggaaa-pb-v3 | 394 | go-github-com-cheggaaa-pb-v3 |
