aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-27 23:52:39 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-28 01:05:16 +0100
commit21b1f165c8534b771cd01dd3554e16dd8bca2396 (patch)
treea8e0d6913894bdd0205dedf59784b31f55388cbf /gnu/packages/golang-xyz.scm
parent6593f40b77440c6680dbb828fc573897d4949b73 (diff)
downloadguix-21b1f165c8534b771cd01dd3554e16dd8bca2396.tar.gz
guix-21b1f165c8534b771cd01dd3554e16dd8bca2396.zip
gnu: Add go-git-sr-ht-rjarry-go-opt.
* gnu/packages/golang-xyz.scm (go-git-sr-ht-rjarry-go-opt): New variable. Change-Id: I2dfafc9144a95dcbd6b10439888f2426be8e7915
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d8fa82d4c1..98da7f953f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -293,6 +293,34 @@ a human-readable byte format.")
search functionality to database applications.")
(license license:expat)))
+(define-public go-git-sr-ht-rjarry-go-opt
+ (package
+ (name "go-git-sr-ht-rjarry-go-opt")
+ (version "1.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~rjarry/go-opt")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0jcs3bn43g3wv4d5w59zazy139qfkn0903lnvndfn06s81gzqpch"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "git.sr.ht/~rjarry/go-opt"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://git.sr.ht/~rjarry/go-opt")
+ (synopsis "Argument parsing and completion based on struct tags")
+ (description
+ "@code{go-opt} is a library to parse command line arguments based on tag
+annotations on struct fields. It came as a spin-off from
+@url{https://git.sr.ht/~rjarry/aerc,aerc} to deal with its internal
+commands.")
+ (license license:expat)))
+
(define-public go-git-sr-ht-sircmpwn-getopt
(package
(name "go-git-sr-ht-sircmpwn-getopt")