sharlatan pushed a commit to branch go-team
in repository guix.

commit 4ef7fc4e245ddb8a5287aeda17c142cafe0716d1
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Feb 18 10:58:36 2025 +0000

    gnu: Add go-github-com-peterbourgon-ff-v3.
    
    * gnu/packages/golang-xyz.scm (go-github-com-peterbourgon-ff-v3): New 
variable.
    
    Change-Id: I63622012649442a0921d250c1fefd715090cd747
---
 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 c7a4b610ec..ad7739245c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -12909,6 +12909,38 @@ abstraction on top.  The end result is a conceptually 
simple, but highly
 performant, disk-backed storage system.")
     (license license:expat)))
 
+(define-public go-github-com-peterbourgon-ff-v3
+  (package
+    (name "go-github-com-peterbourgon-ff-v3")
+    (version "3.4.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/peterbourgon/ff";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "162qh3mp7xn4qhw7rgigwmg0r52mflwcr07fig5z3k257h0mclar"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/peterbourgon/ff/v3"))
+    (propagated-inputs
+     (list go-github-com-pelletier-go-toml
+           go-gopkg-in-yaml-v2))
+    (home-page "https://github.com/peterbourgon/ff";)
+    (synopsis "Flags-first Golang library for configuration")
+    (description
+     "Package ff is a flags-first helper package for configuring programs.
+
+The basic idea is that @code{myprogram -h} should always show the complete
+configuration \"surface area\" of a program.  Therefore, every config
+parameter should be defined as a flag.  This module provides a simple and
+robust way to define those flags, and to parse them from command-line
+arguments, environment variables, and/or config files.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-philhofer-fwd
   (package
     (name "go-github-com-philhofer-fwd")

Reply via email to