guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#72247] [PATCH 1/2] gnu: Add go-go-senan-xyz-flagconf.


From: spencerpeters
Subject: [bug#72247] [PATCH 1/2] gnu: Add go-go-senan-xyz-flagconf.
Date: Tue, 23 Jul 2024 01:56:18 +0000

From: Spencer Peters <spencerpeters@protonmail.com>

    * gnu/packages/golang-xyz.scm (go-go-senan-xyz-flagconf): New variable.


Change-Id: Iaa14ace540e82405876ad48e807d246f9fbdd00a
---
 gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9931911e32..8cdef56b7b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -37,6 +37,7 @@
 ;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
 ;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;; Copyright © 2024 Luis Higino <luishenriquegh2701@gmail.com>
+;;; Copyright © 2024 Spencer Peters <spencerpeters@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5027,6 +5028,34 @@ (define-public go-go-etcd-io-bbolt
 Postgres or MySQL.")
     (license license:expat)))
 
+(define-public go-go-senan-xyz-flagconf
+  (package
+    (name "go-go-senan-xyz-flagconf")
+    (version "0.1.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sentriz/flagconf")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rms7hj1cdi5gfyhf1am1f8c4lq9ll4ashqi87yc6aq93gqgkag0"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      ;; Won't build with any version less than 1.20
+      #:go go-1.22
+      #:import-path "go.senan.xyz/flagconf"))
+    (propagated-inputs (list go-github-com-rogpeppe-go-internal
+                             go-golang-org-x-sys go-golang-org-x-tools))
+    (home-page "https://go.senan.xyz/flagconf")
+    (synopsis "Extensions to Go's flag package")
+    (description
+     "Flagconf provides extensions to Go's flag package to support prefixed
+environment variables and a simple config file format.")
+    (license license:expat)))
+
 (define-public go-go-uber-org-atomic
   (package
     (name "go-go-uber-org-atomic")
--
2.45.2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]