summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-26 19:40:49 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:29 +0200
commitc60dc42ed0e3044809312441138921ba42258cc8 (patch)
tree8f00becf6db54f710da543d7fb5379206e7336a9
parentb60fe402f1de1c80e24768dd221e81c7baeb12e9 (diff)
gnu: rust-libpulse: Move to (gnu packages crates-audio).
* gnu/packages/crates-io.scm (rust-libpulse-binding-2, rust-libpulse-simple-binding-2, rust-libpulse-simple-sys-1, rust-libpulse-sys-1): Move from here ... * gnu/packages/crates-audio.scm: ... to here. Change-Id: Ic006d454543e04a0c0e746eeafac0255cfb3f1eb
-rw-r--r--gnu/packages/crates-audio.scm119
-rw-r--r--gnu/packages/crates-io.scm116
2 files changed, 118 insertions, 117 deletions
diff --git a/gnu/packages/crates-audio.scm b/gnu/packages/crates-audio.scm
index 1d11b4d1bf..4432b0ead3 100644
--- a/gnu/packages/crates-audio.scm
+++ b/gnu/packages/crates-audio.scm
@@ -1,4 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2023 Steve George <steve@futurile.net>
;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2024 Roman Scherer <roman@burningswell.com>
@@ -37,7 +38,8 @@
#:use-module (gnu packages crates-windows)
#:use-module (gnu packages linux)
#:use-module (gnu packages mp3)
- #:use-module (gnu packages pkg-config))
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages pulseaudio))
;;;
;;; Please: Try to add new module packages in alphabetic order.
@@ -250,6 +252,121 @@ Supports Linux through either JACK or ALSA.")
source audio format.")
(license (list license:expat license:asl2.0))))
+(define-public rust-libpulse-binding-2
+ (package
+ (name "rust-libpulse-binding")
+ (version "2.28.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libpulse-binding" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1zza12f22wf1qs6h71lq1i73aj3kmv3036hqc7qci063vyi5fdgd"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libpulse-sys" ,rust-libpulse-sys-1)
+ ("rust-num-derive" ,rust-num-derive-0.3)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list pulseaudio))
+ (home-page "https://github.com/jnqnfe/pulse-binding-rust")
+ (synopsis "Binding for the PulseAudio libpulse library")
+ (description
+ "This package provides a Rust language binding for the PulseAudio libpulse
+library.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-libpulse-simple-binding-2
+ (package
+ (name "rust-libpulse-simple-binding")
+ (version "2.28.1")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "libpulse-simple-binding" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "139hiksmxrmj8zcdqvswgjnwl1rivh915vg6cl92asizydl6pz85"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-libpulse-binding" ,rust-libpulse-binding-2)
+ ("rust-libpulse-simple-sys" ,rust-libpulse-simple-sys-1)
+ ("rust-libpulse-sys" ,rust-libpulse-sys-1))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp"))))))
+ (native-inputs (list pkg-config))
+ (inputs (list pulseaudio))
+ (home-page "https://github.com/jnqnfe/pulse-binding-rust")
+ (synopsis "Rust language bindings for PulseAudio's libpulse-simple library")
+ (description
+ "A Rust language binding for the PulseAudio libpulse-simple library.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-libpulse-simple-sys-1
+ (package
+ (name "rust-libpulse-simple-sys")
+ (version "1.21.1")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "libpulse-simple-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lj13ibdwf69ghy1zlldxq5vsyxi1h13wqpvvh79z2wx36s16rpa"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-libpulse-sys" ,rust-libpulse-sys-1)
+ ("rust-pkg-config" ,rust-pkg-config-0.3))))
+ (native-inputs (list pkg-config))
+ (inputs (list pulseaudio))
+ (home-page "https://github.com/jnqnfe/pulse-binding-rust")
+ (synopsis "FFI indings for PulseAudio's libpulse-simple system library")
+ (description
+ "FFI bindings for the PulseAudio libpulse-simple system library.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-libpulse-sys-1
+ (package
+ (name "rust-libpulse-sys")
+ (version "1.21.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libpulse-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "16vs0qk6xadckb5qxlrhg0f4jn2zakfd7xih1lk1fb7lzc8f26dw"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-num-derive" ,rust-num-derive-0.3)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-pkg-config" ,rust-pkg-config-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list pulseaudio))
+ (home-page "https://github.com/jnqnfe/pulse-binding-rust")
+ (synopsis "FFI bindings for the PulseAudio")
+ (description
+ "This package provides FFI bindings for the PulseAudio libpulse system
+library.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-librespot-audio-0.4
(package
(name "rust-librespot-audio")
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7fde66cf0e..77b2704121 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -116,7 +116,6 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf)
- #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
#:use-module (gnu packages rust)
#:use-module (gnu packages rust-apps)
@@ -42080,121 +42079,6 @@ allocator.")
processes for both MacOS and Linux.")
(license license:expat)))
-(define-public rust-libpulse-binding-2
- (package
- (name "rust-libpulse-binding")
- (version "2.28.1")
- (source
- (origin
- (method url-fetch)
- (uri (crate-uri "libpulse-binding" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "1zza12f22wf1qs6h71lq1i73aj3kmv3036hqc7qci063vyi5fdgd"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs
- (("rust-bitflags" ,rust-bitflags-1)
- ("rust-libc" ,rust-libc-0.2)
- ("rust-libpulse-sys" ,rust-libpulse-sys-1)
- ("rust-num-derive" ,rust-num-derive-0.3)
- ("rust-num-traits" ,rust-num-traits-0.2)
- ("rust-winapi" ,rust-winapi-0.3))
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'set-HOME
- (lambda _ (setenv "HOME" "/tmp"))))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list pulseaudio))
- (home-page "https://github.com/jnqnfe/pulse-binding-rust")
- (synopsis "Binding for the PulseAudio libpulse library")
- (description
- "This package provides a Rust language binding for the PulseAudio libpulse
-library.")
- (license (list license:expat license:asl2.0))))
-
-(define-public rust-libpulse-simple-binding-2
- (package
- (name "rust-libpulse-simple-binding")
- (version "2.28.1")
- (source (origin
- (method url-fetch)
- (uri (crate-uri "libpulse-simple-binding" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "139hiksmxrmj8zcdqvswgjnwl1rivh915vg6cl92asizydl6pz85"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs (("rust-libpulse-binding" ,rust-libpulse-binding-2)
- ("rust-libpulse-simple-sys" ,rust-libpulse-simple-sys-1)
- ("rust-libpulse-sys" ,rust-libpulse-sys-1))
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'set-HOME
- (lambda _ (setenv "HOME" "/tmp"))))))
- (native-inputs (list pkg-config))
- (inputs (list pulseaudio))
- (home-page "https://github.com/jnqnfe/pulse-binding-rust")
- (synopsis "Rust language bindings for PulseAudio's libpulse-simple library")
- (description
- "A Rust language binding for the PulseAudio libpulse-simple library.")
- (license (list license:expat license:asl2.0))))
-
-(define-public rust-libpulse-simple-sys-1
- (package
- (name "rust-libpulse-simple-sys")
- (version "1.21.1")
- (source (origin
- (method url-fetch)
- (uri (crate-uri "libpulse-simple-sys" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "0lj13ibdwf69ghy1zlldxq5vsyxi1h13wqpvvh79z2wx36s16rpa"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs (("rust-libpulse-sys" ,rust-libpulse-sys-1)
- ("rust-pkg-config" ,rust-pkg-config-0.3))))
- (native-inputs (list pkg-config))
- (inputs (list pulseaudio))
- (home-page "https://github.com/jnqnfe/pulse-binding-rust")
- (synopsis "FFI indings for PulseAudio's libpulse-simple system library")
- (description
- "FFI bindings for the PulseAudio libpulse-simple system library.")
- (license (list license:expat license:asl2.0))))
-
-(define-public rust-libpulse-sys-1
- (package
- (name "rust-libpulse-sys")
- (version "1.21.0")
- (source
- (origin
- (method url-fetch)
- (uri (crate-uri "libpulse-sys" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "16vs0qk6xadckb5qxlrhg0f4jn2zakfd7xih1lk1fb7lzc8f26dw"))))
- (build-system cargo-build-system)
- (arguments
- `(#:cargo-inputs
- (("rust-libc" ,rust-libc-0.2)
- ("rust-num-derive" ,rust-num-derive-0.3)
- ("rust-num-traits" ,rust-num-traits-0.2)
- ("rust-pkg-config" ,rust-pkg-config-0.3)
- ("rust-winapi" ,rust-winapi-0.3))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list pulseaudio))
- (home-page "https://github.com/jnqnfe/pulse-binding-rust")
- (synopsis "FFI bindings for the PulseAudio")
- (description
- "This package provides FFI bindings for the PulseAudio libpulse system
-library.")
- (license (list license:expat license:asl2.0))))
-
(define-public rust-libradicl-0.4
(package
(name "rust-libradicl")