summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <[email protected]>2025-01-08 14:43:01 +0000
committerSharlatan Hellseher <[email protected]>2025-01-21 23:47:44 +0000
commit9016419e80b4b88f83089387c177d39940ce9570 (patch)
tree7324e57bb2163b13317e76ba3417489bd34bd8aa
parent1c6787f9a50f54cb3803040c3236624ce2d89bdf (diff)
gnu: go-dario-cat-mergo: Move to golang-xyz.
* gnu/packages/golang.scm (go-dario-cat-mergo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I3c82451ec5c3147e00f6598986903dda735f9e0f
-rw-r--r--gnu/packages/golang-xyz.scm31
-rw-r--r--gnu/packages/golang.scm29
2 files changed, 31 insertions, 29 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 55050a62d2..ba26fba4ef 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -250,6 +250,37 @@ use the C library from the project called FUSE.")
a human-readable byte format.")
(license license:asl2.0)))
+(define-public go-dario-cat-mergo
+ (package
+ (name "go-dario-cat-mergo")
+ (version "1.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/darccio/mergo")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "dario.cat/mergo"))
+ (native-inputs
+ (list go-gopkg-in-yaml-v3))
+ (home-page "https://github.com/darccio/mergo")
+ (synopsis "Helper to merge structs and maps in Golang")
+ (description
+ "Helper to merge structs and maps in Golang. Useful for configuration
+default values, avoiding messy if-statements.
+
+Mergo merges same-type structs and maps by setting default values in
+zero-value fields. Mergo won't merge unexported (private) fields. It will do
+recursively any exported one. It also won't merge structs inside
+maps (because they are not addressable using Go reflection).")
+ (license license:bsd-3)))
+
(define-public go-git-sr-ht-emersion-go-scfg
(package
(name "go-git-sr-ht-emersion-go-scfg")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 11dbc5e5bd..5e84c533c8 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3202,35 +3202,6 @@ Porter2 stemmer}. It is written completely using finite state machines to do
suffix comparison, rather than the string-based or tree-based approaches.")
(license license:asl2.0))))
-(define-public go-dario-cat-mergo
- (package
- (name "go-dario-cat-mergo")
- (version "1.0.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/darccio/mergo")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1"))))
- (build-system go-build-system)
- (arguments
- `(#:import-path "dario.cat/mergo"))
- (native-inputs
- (list go-gopkg-in-yaml-v3))
- (home-page "https://github.com/darccio/mergo")
- (synopsis "Helper to merge structs and maps in Golang")
- (description "Helper to merge structs and maps in Golang. Useful for
-configuration default values, avoiding messy if-statements.
-
-Mergo merges same-type structs and maps by setting default values in
-zero-value fields. Mergo won't merge unexported (private) fields. It will do
-recursively any exported one. It also won't merge structs inside
-maps (because they are not addressable using Go reflection).")
- (license license:bsd-3)))
-
(define-public go-github-com-olekukonko-ts
(let ((commit "78ecb04241c0121483589a30b0814836a746187d")
(revision "0"))