sharlatan pushed a commit to branch go-team
in repository guix.

commit 092290a9a4ed8eaded0166e537443b6d8c6e6e0e
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Feb 22 14:55:21 2025 +0000

    gnu: go-github-com-wtolson-go-taglib: Move to music.
    
    * gnu/packages/golang.scm (go-github-com-wtolson-go-taglib): Move from
    here ...
    * gnu/packages/music.scm: ... to here.
    
    Change-Id: I2b5234ac631cb11c663fdebc4173b707a3faace0
---
 gnu/packages/golang.scm | 40 ----------------------------------------
 gnu/packages/music.scm  | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 40 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 04f13f3ab9..2fc8cc5c10 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1211,46 +1211,6 @@ methods can be called and usual operations such as 
indexing or arithmetic can
 be performed.")
       (license license:expat))))
 
-(define-public go-github-com-wtolson-go-taglib
-  (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
-        (revision "0"))
-    (package
-      (name "go-github-com-wtolson-go-taglib")
-      (version (git-version "0.0.0" revision commit))
-      (source
-       (origin
-         (method git-fetch)
-         (uri (git-reference
-               (url
-                "https://github.com/wtolson/go-taglib";)
-               (commit commit)))
-         (file-name (git-file-name name version))
-         (sha256
-          (base32
-           "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2"))))
-      (build-system go-build-system)
-      ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
-      ;; when this package required as input for another one, it will have to
-      ;; be built again.  Thus its CGO requirements must be made available in
-      ;; the environment, that is, they must be propagated.
-      (propagated-inputs
-       (list pkg-config taglib))
-      (arguments
-       `(#:import-path "github.com/wtolson/go-taglib"
-         ;; Tests don't pass "vet" on Go since 1.11.  See
-         ;; https://github.com/wtolson/go-taglib/issues/12.
-         #:phases
-         (modify-phases %standard-phases
-           (replace 'check
-             (lambda* (#:key import-path #:allow-other-keys)
-               (invoke "go" "test"
-                       "-vet=off"
-                       import-path))))))
-      (home-page "https://github.com/wtolson/go-taglib";)
-      (synopsis "Go wrapper for taglib")
-      (description "Go wrapper for taglib")
-      (license license:unlicense))))
-
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index bf47489d34..45676273fa 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -6319,6 +6319,48 @@ discard bad quality ones.
 @end itemize\n")
       (license license:expat))))
 
+;; demlo is only one user of this package, keep it next to it to prevent
+;; importing taglib module into golang-xyz.
+(define-public go-github-com-wtolson-go-taglib
+  (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777")
+        (revision "0"))
+    (package
+      (name "go-github-com-wtolson-go-taglib")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url
+                "https://github.com/wtolson/go-taglib";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1cpjqnrviwflz150g78iir5ndrp3hh7a93zbp4dwbg6sb2q141p2"))))
+      (build-system go-build-system)
+      ;; From go-1.10 onward, "pkg" compiled libraries are not re-used, so
+      ;; when this package required as input for another one, it will have to
+      ;; be built again.  Thus its CGO requirements must be made available in
+      ;; the environment, that is, they must be propagated.
+      (propagated-inputs
+       (list pkg-config taglib))
+      (arguments
+       `(#:import-path "github.com/wtolson/go-taglib"
+         ;; Tests don't pass "vet" on Go since 1.11.  See
+         ;; https://github.com/wtolson/go-taglib/issues/12.
+         #:phases
+         (modify-phases %standard-phases
+           (replace 'check
+             (lambda* (#:key import-path #:allow-other-keys)
+               (invoke "go" "test"
+                       "-vet=off"
+                       import-path))))))
+      (home-page "https://github.com/wtolson/go-taglib";)
+      (synopsis "Go wrapper for taglib")
+      (description "Go wrapper for taglib")
+      (license license:unlicense))))
+
 (define-public fmit
   (package
     (name "fmit")

Reply via email to