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

commit 59561a84eb35396ff819b88f4417ad1c5c1eb6a2
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Feb 22 14:48:25 2025 +0000

    gnu: go-github-com-akosmarton-papipes: Move to radio.
    
    * gnu/packages/golang.scm (go-github-com-akosmarton-papipes): Move from
    here ...
    * gnu/packages/radio.scm: ... to here.
    
    Change-Id: I762f1260d9c4d7ab5083529e405664dc5ef225f7
---
 gnu/packages/golang.scm | 38 --------------------------------------
 gnu/packages/radio.scm  | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 38 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0188f3adc2..bd8c05a77e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1277,44 +1277,6 @@ be performed.")
 their ASCII approximations.")
       (license license:asl2.0))))
 
-(define-public go-github-com-akosmarton-papipes
-  (let ((commit "3c63b4919c769c9c2b2d07e69a98abb0eb47fe64")
-        (revision "0"))
-    (package
-      (name "go-github-com-akosmarton-papipes")
-      (version (git-version "0.0.0" revision commit))
-      (source
-       (origin
-         (method git-fetch)
-         (uri (git-reference
-               (url "https://github.com/akosmarton/papipes";)
-               (commit commit)))
-         (file-name (git-file-name name version))
-         (sha256
-          (base32 "16p77p3d1v26qd3knxn087jqlad2qm23q8m796cdr66hrdc0gahq"))))
-      (build-system go-build-system)
-      (inputs
-       (list pulseaudio))
-      (arguments
-       `(#:import-path "github.com/akosmarton/papipes"
-         #:phases
-         (modify-phases %standard-phases
-           (add-after 'unpack 'fix-paths
-             (lambda* (#:key inputs #:allow-other-keys)
-               (substitute* '("src/github.com/akosmarton/papipes/common.go"
-                              "src/github.com/akosmarton/papipes/sink.go"
-                              "src/github.com/akosmarton/papipes/source.go")
-                 (("exec.Command\\(\"pactl\"")
-                  (string-append "exec.Command(\""
-                                 (assoc-ref inputs "pulseaudio")
-                                 "/bin/pactl\""))))))))
-      (home-page "https://github.com/akosmarton/papipes";)
-      (synopsis "Pulseaudio client library for Go")
-      (description
-       "This is a Pulseaudio client library in Golang for creating virtual
-sinks and sources.")
-      (license license:expat))))
-
 ;;;
 ;;; 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/radio.scm b/gnu/packages/radio.scm
index 94975e3568..60e15c48a6 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2365,6 +2365,46 @@ Compatible hardware/software:
 or capture raw audio.")
       (license license:expat))))
 
+;; kapanhang is only one user of this package, keep it next to it to prevent
+;; importing pulseaudio module into golang-xyz.
+(define-public go-github-com-akosmarton-papipes
+  (let ((commit "3c63b4919c769c9c2b2d07e69a98abb0eb47fe64")
+        (revision "0"))
+    (package
+      (name "go-github-com-akosmarton-papipes")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/akosmarton/papipes";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "16p77p3d1v26qd3knxn087jqlad2qm23q8m796cdr66hrdc0gahq"))))
+      (build-system go-build-system)
+      (inputs
+       (list pulseaudio))
+      (arguments
+       `(#:import-path "github.com/akosmarton/papipes"
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-paths
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* '("src/github.com/akosmarton/papipes/common.go"
+                              "src/github.com/akosmarton/papipes/sink.go"
+                              "src/github.com/akosmarton/papipes/source.go")
+                 (("exec.Command\\(\"pactl\"")
+                  (string-append "exec.Command(\""
+                                 (assoc-ref inputs "pulseaudio")
+                                 "/bin/pactl\""))))))))
+      (home-page "https://github.com/akosmarton/papipes";)
+      (synopsis "Pulseaudio client library for Go")
+      (description
+       "This is a Pulseaudio client library in Golang for creating virtual
+sinks and sources.")
+      (license license:expat))))
+
 (define-public dream
   (package
     (name "dream")

Reply via email to