Subject: [bug#66717] [PATCH 36/64] gnu: Add rust-gstreamer-audio-0.18.

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

* gnu/packages/crates-io.scm (rust-gstreamer-audio-0.18): New variable.
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1202dd09ca..b351be6ecb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30481,6 +30481,38 @@ (define-public rust-gstreamer-audio-sys-0.18
     (description "FFI bindings to libgstaudio, part of Gstreamer.")
     (license license:expat)))
 
+(define-public rust-gstreamer-audio-0.18
+  (package
+    (name "rust-gstreamer-audio")
+    (version "0.18.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-audio" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zl0bj03rz19qlrm50w7i5sagh0i0p5d8gr7ig1k6k5yd7k47sww"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-inputs (("rust-array-init" ,rust-array-init-2)
+                       ("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-glib" ,rust-glib-0.15)
+                       ("rust-gstreamer" ,rust-gstreamer-0.18)
+                       ("rust-gstreamer-audio-sys" ,rust-gstreamer-audio-sys-0.18)
+                       ("rust-gstreamer-base" ,rust-gstreamer-base-0.18)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-once-cell" ,rust-once-cell-1))
+       #:cargo-development-inputs (("rust-gir-format-check" ,rust-gir-format-check-0.1)
+                                   ("rust-itertools" ,rust-itertools-0.10))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib gstreamer gst-plugins-base))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "Rust bindings for the GStreamer Audio library")
+    (description "Rust bindings for the GStreamer Audio library.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gumdrop-0.8
   (package
     (name "rust-gumdrop")
-- 
2.41.0