sharlatan pushed a commit to branch master
in repository guix.

commit c7cf66fb4025afb8309a968d8bc4bdf87ed9c666
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Jul 6 09:52:05 2024 +0100

    gnu: Add go-github-com-alecthomas-kong.
    
    * gnu/packages/golang-xyz.scm (go-github-com-alecthomas-kong): New variable.
    
    Change-Id: I92218bd2cf6c186e63812dd83655686bb7a7f97a
---
 gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 86964c47b9..dfaedd604a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -587,6 +587,37 @@ be stripped.")
     (native-inputs
      (list go-github-com-stretchr-testify))))
 
+(define-public go-github-com-alecthomas-kong
+  (package
+    (name "go-github-com-alecthomas-kong")
+    (version "0.9.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/alecthomas/kong";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0a9arf30h84ll8k612jh50c3vjmvdfj6i7dbvfnw3dalm6dn2aan"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      ;; One test failed when set to go-1.18 o lower, see
+      ;; <https://github.com/alecthomas/kong/issues/437>
+      #:go go-1.19
+      #:import-path "github.com/alecthomas/kong"))
+    (native-inputs
+     (list go-github-com-alecthomas-assert-v2))
+    (propagated-inputs
+     (list go-github-com-alecthomas-repr))
+    (home-page "https://github.com/alecthomas/kong";)
+    (synopsis "Command-line parser for Golang")
+    (description
+     "Package kong aims to support arbitrarily complex command-line structures
+with as little developer effort as possible.")
+    (license license:expat)))
+
 (define-public go-github-com-alecthomas-participle-v2
   (package
     (name "go-github-com-alecthomas-participle-v2")

Reply via email to