Subject: [PATCH 44/64] gnu: Add rust-portaudio-rs-0.3.

From: Steve George <[email-masked]>
Date: Mon, 23 Oct 2023 23:21:29 +0100

* gnu/packages/crates-io.scm (rust-portaudio-rs-0.3): New variable.

-- >8 --
Skipping build because an update to the PortAudio library is requred. Started
looking at, this but it expanded the patch stack to require changes in
audio dependencies which I'm not comfortable making.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 67f7b0dd5c..eeea310bd6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52280,6 +52280,29 @@ (define-public rust-portable-atomic-1
 128-bit atomics, atomic float, etc.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-portaudio-rs-0.3
+  (package
+    (name "rust-portaudio-rs")
+    (version "0.3.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "portaudio-rs" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0qnmc7amk0fzbcs985ixv0k4955f0fmpkhrl9ps9pk3cz7pvbdnd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t ;requires an update to PortAudio library
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-portaudio-sys" ,rust-portaudio-sys-0.1))))
+    (home-page "https://github.com/RustAudio/rust-portaudio.git")
+    (synopsis "Rust bindings for PortAudio a cross-platfomr audio library")
+    (description "Rusting bindings for PortAudio an open source, cross-platform
+audio I/O library.")
+    (license license:expat)))
+
 (define-public rust-portaudio-sys-0.1
   (package
     (name "rust-portaudio-sys")
-- 
2.41.0