diff mbox series

[bug#74233,PATCHv2,rust-team,14/40] gnu: Add rust-gstreamer-audio-sys-0.21.

Message ID ff9adfce54414f527764f16dc9df1624fa6e6b39.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:21 p.m. UTC
* gnu/packages/crates-gtk.scm (rust-gstreamer-audio-sys-0.21): New
variable;
(rust-gstreamer-audio-sys-0.18): inherit from rust-gstreamer-audio-sys-0.21.

Change-Id: I3a06ef41bb5e2e8a26442c83ab48a250dd5bfd43
---
 gnu/packages/crates-gtk.scm | 40 +++++++++++++++++++++++++++++++------
 1 file changed, 34 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 91d084f5d0..47d7a95208 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2944,26 +2944,29 @@  (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
+     ;; Some symbols are missing, i.e. ?GstDsdFormat?
+     ;; and more.
+     `(#:tests? #f
+       #: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-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))
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
@@ -2975,6 +2978,31 @@  (define-public rust-gstreamer-audio-sys-0.18
     (description "FFI bindings to libgstaudio, part of Gstreamer.")
     (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")