Subject: [bug#75176] [PATCH 18/18] gnu: Add go-github-com-hetznercloud-cli.

From: Roman Scherer <[email-masked]>
Date: Sun, 29 Dec 2024 13:14:37 +0100

* gnu/packages/admin.scm (go-github-com-hetznercloud-cli): New variable.

Change-Id: I7c7637a33d96ecb5fc4cfe6affe3f3aa469bb3e5
---
 gnu/packages/admin.scm | 48 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index a5f6222e39..c1f9ebe480 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -6182,6 +6182,54 @@ (define-public go-github-com-hetznercloud-hcloud-go
     (description "This package provides a library for the Hetzner Cloud API.")
     (license license:expat)))
 
+(define-public go-github-com-hetznercloud-cli
+  (package
+    (name "go-github-com-hetznercloud-cli")
+    (version "1.49.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/hetznercloud/cli")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0mgd1rv0i18h7jbzl034ffpfxvnjirp60qwxsjpfy42jh1d8xbjm"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.22
+      #:install-source? #f
+      #:import-path "github.com/hetznercloud/cli/cmd/hcloud"
+      #:unpack-path "github.com/hetznercloud/cli"))
+    (propagated-inputs (list go-golang-org-x-term
+                             go-golang-org-x-crypto
+                             go-go-uber-org-mock
+                             go-github-com-swaggest-assertjson
+                             go-github-com-stretchr-testify
+                             go-github-com-spf13-viper
+                             go-github-com-spf13-pflag
+                             go-github-com-spf13-cobra
+                             go-github-com-spf13-cast
+                             go-github-com-jedib0t-go-pretty-list
+                             go-github-com-jedib0t-go-pretty-progress
+                             go-github-com-jedib0t-go-pretty-table
+                             go-github-com-jedib0t-go-pretty-text
+                             go-github-com-hetznercloud-hcloud-go
+                             go-github-com-guptarohit-asciigraph
+                             go-github-com-goccy-go-yaml
+                             go-github-com-fatih-structs
+                             go-github-com-fatih-color
+                             go-github-com-dustin-go-humanize
+                             go-github-com-cheggaaa-pb-v3
+                             go-github-com-burntsushi-toml))
+    (home-page "https://github.com/hetznercloud/cli")
+    (synopsis "Command-line interface for the Hetzner Cloud service")
+    (description
+     "This package provides the @@code{hcloud} binary, a command-line
+interface for interacting with the Hetzner Cloud service.")
+    (license license:expat)))
+
 (define-public restartd
   (let* ((commit "7044125ac55056f2663536f7137170edf92ebd75")
          ;; Version is 0.2.4 in the version file in the repo
-- 
2.47.1