Subject: [PATCH 09/29] gnu: Add go-github-com-chzyer-readline.

From: Wilko Meyer <[email-masked]>
Date: Wed, 18 Oct 2023 11:38:07 +0200

* gnu/packages/golang.scm (go-github-com-chzyer-readline): New variable.
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4825db4091..f80eb33cb6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1895,6 +1895,31 @@ (define-public go-github-com-chzyer-logex
     (description
      "An golang log lib, supports tracing and level, wrap by standard log lib")
     (license license:expat)))
+
+(define-public go-github-com-chzyer-readline
+  (package
+    (name "go-github-com-chzyer-readline")
+    (version "1.5.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/readline")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1msh9qcm7l1idpmfj4nradyprsr86yhk9ch42yxz7xsrybmrs0pb"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/chzyer/readline"))
+    (propagated-inputs `(("go-github-com-chzyer-logex" ,go-github-com-chzyer-logex)
+                         ("go-golang-org-x-sys" ,go-golang-org-x-sys)
+                         ("go-github-com-chzyer-test" ,go-github-com-chzyer-test)))
+    (home-page "https://github.com/chzyer/readline")
+    (synopsis "Guide")
+    (description
+     "Readline is a pure go implementation for GNU-Readline kind library.")
+    (license license:expat)))
 (define-public go-github-com-pkg-xattr
   (package
     (name "go-github-com-pkg-xattr")
-- 
2.41.0