Subject: [bug#69257] [PATCH rust-team v3 57/75] gnu: Add rust-gstreamer-audio-sys-0.21.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:29 +0200

* gnu/packages/crates-gtk.scm (rust-gstreamer-audio-sys-0.21): Add
variable.
(rust-gstreamer-audio-sys-0.18): Inherit from
rust-gstreamer-audio-sys-0.21.
---
 gnu/packages/crates-gtk.scm | 60 +++++++++++++++++++++++++++----------
 1 file changed, 45 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a86dfefdac..bc5ca66a0d 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2422,37 +2422,67 @@ (define-public rust-gstreamer-audio-0.18
     (description "Rust bindings for the GStreamer Audio library.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-gstreamer-audio-sys-0.18
+(define-public rust-gstreamer-audio-sys-0.21
   (package
     (name "rust-gstreamer-audio-sys")
-    (version "0.18.3")
+    (version "0.21.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "gstreamer-audio-sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0z3xryblh75xp08xyw3m6jfz9azarcvl06dd3psc0n65agxmhhm3"))))
+        (base32 "1lamp4s9cl0hhpbfcwdprn36fll6qq4xihrqbf2pfwqpifp99gbq"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-test-flags
-       (list "--release" "--"
-             "--skip=cross_validate_constants_with_c")
-       #:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.15)
-                       ("rust-gobject-sys" ,rust-gobject-sys-0.15)
-                       ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.18)
-                       ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18)
-                       ("rust-libc" ,rust-libc-0.2)
-                       ("rust-system-deps" ,rust-system-deps-6))
-       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
-                                   ("rust-tempfile" ,rust-tempfile-3))))
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=cross_validate_constants_with_c"
+                            "--skip=cross_validate_layout_with_c")
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))
+       #:cargo-inputs
+       (("rust-glib-sys" ,rust-glib-sys-0.18)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+        ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.21)
+        ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.21)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-system-deps" ,rust-system-deps-6))))
     (native-inputs (list pkg-config))
     (inputs (list glib gstreamer gst-plugins-base))
     (home-page "https://gstreamer.freedesktop.org")
     (synopsis "FFI bindings to libgstaudio-1.0")
-    (description "FFI bindings to libgstaudio, part of Gstreamer.")
+    (description
+      "This package provides FFI bindings to libgstaudio-1.0.")
     (license license:expat)))
 
+(define-public rust-gstreamer-audio-sys-0.18
+  (package
+    (inherit rust-gstreamer-audio-sys-0.21)
+    (name "rust-gstreamer-audio-sys")
+    (version "0.18.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-audio-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0z3xryblh75xp08xyw3m6jfz9azarcvl06dd3psc0n65agxmhhm3"))))
+    (arguments
+     `(#:cargo-test-flags
+       (list "--release" "--"
+             "--skip=cross_validate_constants_with_c")
+       #:cargo-inputs
+       (("rust-glib-sys" ,rust-glib-sys-0.15)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.15)
+        ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.18)
+        ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-gstreamer-base-0.21
   (package
     (name "rust-gstreamer-base")
-- 
2.41.0