1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +02:00

gnu: go-dario-cat-mergo: Add package variants.

In Golang ecosystem, renaming the project is a common practice which may
lead to source duplication.  This change introduces 2 variants of
go-dario-cat-mergo covering the case when the final project still uses
the old module name, see
<https://github.com/jesseduffield/lazygit/issues/4453>.

* gnu/packages/golang-xyz.scm (go-github-com-imdario-mergo)
(go-github-com-darccio-mergo): New variables.

Change-Id: I4962158590c59fa833d3108c7a764457c1f49509
This commit is contained in:
Sharlatan Hellseher 2025-04-02 20:18:20 +01:00
parent 11583a0a4d
commit b7baad8358
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3900,6 +3900,21 @@ updated clone of kballards golang fnmatch
gist (https://gist.github.com/kballard/272720).")
(license license:bsd-2))))
(define-public go-github-com-darccio-mergo
(hidden-package
(package/inherit go-dario-cat-mergo
(name "go-github-com-darccio-mergo")
(arguments
(list
#:import-path "github.com/darccio/mergo"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-import-path
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\.go$")
(("dario.cat/mergo") import-path)))))))))))
(define-public go-github-com-dave-jennifer
(package
(name "go-github-com-dave-jennifer")
@ -7627,6 +7642,21 @@ keep the order that they're added. It can be de/serialized from/to JSON.")
"Package strcase converts strings to various cases.")
(license license:expat)))
(define-public go-github-com-imdario-mergo
(hidden-package
(package/inherit go-dario-cat-mergo
(name "go-github-com-imdario-mergo")
(arguments
(list
#:import-path "github.com/imdario/mergo"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-import-path
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\.go$")
(("dario.cat/mergo") import-path)))))))))))
(define-public go-github-com-invopop-yaml
(package
(name "go-github-com-invopop-yaml")