This is an automated email from the git hooks/post-receive script.

sharlatan pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b7baad8358 gnu: go-dario-cat-mergo: Add package variants.
b7baad8358 is described below

commit b7baad8358afff4f0ab09219735aa10bdaeabecd
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Apr 2 20:18:20 2025 +0100

    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
---
 gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4eb2192a88..25119c5df2 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -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")

Reply via email to