Subject: [PATCH v8 20/51] gnu: Add rust-gstreamer-audio-sys-0.8.

From: Leo Prikler <[email-masked]>
Date: Wed, 17 Mar 2021 21:27:04 +0100

* gnu/packages/crates-gtk.scm (rust-gstreamer-audio-sys-0.8): New variable.
---
 gnu/packages/crates-gtk.scm | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 3d492c2937..4280211c27 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1048,6 +1048,51 @@ checking library.")
     (description "This package provides Rust bindings for GStreamer.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gstreamer-audio-sys-0.8
+  (package
+    (name "rust-gstreamer-audio-sys")
+    (version "0.8.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-audio-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1rxw1s57yrw1zsbindaf2sj05df4qh17bshadqfw77y4xr9izjdv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build?
+       #t
+       #:cargo-inputs
+       (("rust-glib-sys" ,rust-glib-sys-0.9)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.9)
+        ("rust-gstreamer-base-sys"
+         ,rust-gstreamer-base-sys-0.8)
+        ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.8)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-pkg-config" ,rust-pkg-config-0.3))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-0.1)
+        ("rust-tempfile" ,rust-tempfile-3))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "CC" (cc-for-target))
+             #t)))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("glib" ,glib)
+       ("gstreamer" ,gstreamer)
+       ("gst-plugins-base" ,gst-plugins-base)))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "FFI bindings to libgstaudio-1.0")
+    (description "This package provides FFI bindings to libgstaudio-1.0.")
+    (license license:expat)))
+
 (define-public rust-gstreamer-base-0.15
   (package
     (name "rust-gstreamer-base")
-- 
2.31.0