guix_mirror_bot pushed a commit to branch master
in repository guix.
commit e0d82b43817b5cd580745fda00941cf9ad17677a
Author: Patrick Norton <[email protected]>
AuthorDate: Mon Nov 24 17:50:42 2025 -0500
gnu: Add go-github-com-unknwon-goconfig.
* gnu/packages/golang-web.scm (go-github-com-unknwon-goconfig): New
variable.
Change-Id: Id00c933831557398fd1b8a7b49f5aeaeffb5fce1
Co-authored-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9ab12f08a9..3e66e36c6f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -22658,6 +22658,42 @@ stopped.")
dependencies of @url{https://u-root.org/, u-root} project.")
(license license:bsd-3)))
+(define-public go-github-com-unknwon-goconfig
+ (package
+ (name "go-github-com-unknwon-goconfig")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/unknwon/goconfig")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "10f0lhb3l971b2fw2xsvbsy96gx9isyckg2003av2f4rlzs27n7b"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/unknwon/goconfig"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'make-testdata-writable
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (for-each make-file-writable (find-files "testdata")))))
+ (add-after 'check 'remove-test-data
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "testdata")))))))
+ (native-inputs
+ (list go-github-com-smartystreets-goconvey))
+ (home-page "https://github.com/unknwon/goconfig")
+ (synopsis "Configuration file parser")
+ (description
+ "This package is a fully functional and comments-support configuration
+file(.ini) parser.")
+ (license license:asl2.0)))
+
(define-public go-github-com-urfave-cli
(package
(name "go-github-com-urfave-cli")