guix_mirror_bot pushed a commit to branch master
in repository guix.

commit b586469706cb59e7ca97c35be3939e4bce780727
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed May 28 09:57:57 2025 +0900

    gnu: Add go-github-com-jiangxin-goconfig.
    
    * gnu/packages/golang-vcs.scm (go-github-com-jiangxin-goconfig): New 
variable.
    
    Change-Id: I16784102273da77fb76697c3344e4912e83cb30f
    Modified-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-vcs.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm
index 3cbb16a017..28b3d8fa0c 100644
--- a/gnu/packages/golang-vcs.scm
+++ b/gnu/packages/golang-vcs.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2024 Sharlatan Hellseher <[email protected]>
 ;;; Copyright © 2025 David Thompson <[email protected]>
 ;;; Copyright © 2025 Ludovic Courtès <[email protected]>
+;;; Copyright © 2025 Maxim Cournoyer <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -214,6 +215,40 @@ using the Git pkt-line format used in various Git 
operations.")
     (description "This package provides a Git implementation library.")
     (license license:asl2.0)))
 
+(define-public go-github-com-jiangxin-goconfig
+  (package
+    (name "go-github-com-jiangxin-goconfig")
+    (version "1.1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jiangxin/goconfig";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dgmwa8dzzafxcpd4j5vmdfmqn2xvah3qd9rfnihywiw45748hg1"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/jiangxin/goconfig"))
+    (native-inputs
+     (list git-minimal/pinned
+           go-github-com-jiu2015-gotestspace
+           go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-golang-groupcache
+           go-github-com-spf13-pflag))
+    (home-page "https://github.com/jiangxin/goconfig";)
+    (synopsis "Go parsing library for .gitconfig files")
+    (description
+     "@code{goconfig} is a Go library for parsing configuration files that
+have the same syntax as @file{.gitconfig} files.  It understands multiple
+values configuration, and can parse configurations include via
+@code{include.path} directives.  @code{includeIf.*.path} directives are not
+supported yet.")
+    (license license:gpl2+)))
+
 ;; TODO: Delete all node_modules in pkg/runner/testdata/actions.
 (define-public go-github-com-nektos-act
   (package

Reply via email to