Subject: [bug#72963] [PATCH go-team 21/30] gnu: Add go-github-com-charmbracelet-x-term.

From: Herman Rimm <[email-masked]>
Date: Mon, 2 Sep 2024 14:18:29 +0200

* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-term): Add
variable.
---
 gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 5ed23464c4..ce14a9329c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1573,6 +1573,34 @@ (define-public go-github-com-charmbracelet-x-input
      "This package provides a terminal event input handler and driver.")
     (license license:expat)))
 
+(define-public go-github-com-charmbracelet-x-term
+  (package
+    (name "go-github-com-charmbracelet-x-term")
+    (version "0.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/charmbracelet/x")
+             (commit (string-append "term/v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1rmgkylsy3a9vng10m9zx510i41dzxmimfjfdp3c4ki9zk8n1x1l"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/charmbracelet/x/term"
+           #:unpack-path "github.com/charmbracelet/x"))
+    (propagated-inputs
+      (append (list go-golang-org-x-sys)
+              (go-inputs go-github-com-charmbracelet-x-input)
+              (go-inputs go-github-com-charmbracelet-x-ansi)))
+    (home-page "https://github.com/charmbracelet/x")
+    (synopsis "Terminal utilities and helpers")
+    (description
+      "This package provides terminal utilities and helpers.")
+    (license license:expat)))
+
 (define-public go-github-com-charmbracelet-x-windows
   (package
     (name "go-github-com-charmbracelet-x-windows")
-- 
2.45.2