Subject: [PATCH go-team 20/30] gnu: Add go-github-com-charmbracelet-x-input.

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

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

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index dc4c7f9c7e..5ed23464c4 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1541,6 +1541,38 @@ (define-public go-github-com-charmbracelet-x-ansi
 ECMA-48 specs.")
     (license license:expat)))
 
+(define-public go-github-com-charmbracelet-x-input
+  (package
+    (name "go-github-com-charmbracelet-x-input")
+    (version "0.1.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/charmbracelet/x")
+             (commit (string-append "ansi/v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1j33791lkz4jzvm220dg82wr79gxncfflpqrlz34vhm7215fwbx0"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/charmbracelet/x/input"
+           #:unpack-path "github.com/charmbracelet/x"))
+    (propagated-inputs
+      (append (list go-golang-org-x-sys
+                    go-github-com-xo-terminfo
+                    go-github-com-muesli-cancelreader
+                    go-github-com-erikgeiser-coninput)
+              ;; Inputs from the same module.
+              (go-inputs go-github-com-charmbracelet-x-windows)
+              (go-inputs go-github-com-charmbracelet-x-ansi)))
+    (home-page "https://github.com/charmbracelet/x")
+    (synopsis "Terminal event input handler and driver")
+    (description
+     "This package provides a terminal event input handler and driver.")
+    (license license:expat)))
+
 (define-public go-github-com-charmbracelet-x-windows
   (package
     (name "go-github-com-charmbracelet-x-windows")
-- 
2.45.2