diff mbox series

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

Message ID c4fde09d4bac764d74c682ff16ae992f739e6f35.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-0.21): New variable;
(rust-gstreamer-0.18): inherit from rust-gstreamer-0.21.

Change-Id: Icb016f32975ff6ff7996cdcc793f55177454ea51
---
 gnu/packages/crates-gtk.scm | 54 +++++++++++++++++++++++++++++++------
 1 file changed, 46 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index e53f2e3c63..a2e79276cd 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2770,17 +2770,17 @@  (define-public rust-gsk4-sys-0.7
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))))
 
-(define-public rust-gstreamer-0.18
+(define-public rust-gstreamer-0.21
   (package
     (name "rust-gstreamer")
-    (version "0.18.8")
+    (version "0.21.3")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "gstreamer" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "0mjlnw9917j3wwij8225bjp54k7408lxqjjnh6r6wksyryx66qyn"))))
+                "0mchpvvll5i4ck8zr7aarrz6p975n0dcyy92wksg8ycf9hzp15fy"))))
     (build-system cargo-build-system)
     (arguments
      (list #:tests? #f  ; https://github.com/gtk-rs/gtk3-rs/issues/768
@@ -2789,23 +2789,23 @@  (define-public rust-gstreamer-0.18
                             ("rust-futures-channel" ,rust-futures-channel-0.3)
                             ("rust-futures-core" ,rust-futures-core-0.3)
                             ("rust-futures-util" ,rust-futures-util-0.3)
-                            ("rust-glib" ,rust-glib-0.15)
-                            ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18)
+                            ("rust-glib" ,rust-glib-0.18)
+                            ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.21)
                             ("rust-libc" ,rust-libc-0.2)
                             ("rust-muldiv" ,rust-muldiv-1)
                             ("rust-num-integer" ,rust-num-integer-0.1)
                             ("rust-num-rational" ,rust-num-rational-0.4)
                             ("rust-once-cell" ,rust-once-cell-1)
-                            ("rust-option-operations" ,rust-option-operations-0.4)
+                            ("rust-option-operations" ,rust-option-operations-0.5)
                             ("rust-paste" ,rust-paste-1)
-                            ("rust-pretty-hex" ,rust-pretty-hex-0.3)
+                            ("rust-pretty-hex" ,rust-pretty-hex-0.4)
                             ("rust-serde" ,rust-serde-1)
                             ("rust-serde-bytes" ,rust-serde-bytes-0.11)
                             ("rust-thiserror" ,rust-thiserror-1))
            #:cargo-development-inputs
             `(("rust-futures-executor" ,rust-futures-executor-0.3)
               ("rust-gir-format-check" ,rust-gir-format-check-0.1)
-              ("rust-ron" ,rust-ron-0.7)
+              ("rust-ron" ,rust-ron-0.8)
               ("rust-serde-json" ,rust-serde-json-1))))
     (native-inputs (list pkg-config))
     (inputs (list glib gstreamer))
@@ -2814,6 +2814,44 @@  (define-public rust-gstreamer-0.18
     (description "Rust bindings for GStreamer.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gstreamer-0.18
+  (package
+    (inherit rust-gstreamer-0.21)
+    (name "rust-gstreamer")
+    (version "0.18.8")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "gstreamer" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0mjlnw9917j3wwij8225bjp54k7408lxqjjnh6r6wksyryx66qyn"))))
+    (arguments
+     (list #:tests? #f  ; https://github.com/gtk-rs/gtk3-rs/issues/768
+           #:cargo-inputs `(("rust-bitflags" ,rust-bitflags-1)
+                            ("rust-cfg-if" ,rust-cfg-if-1)
+                            ("rust-futures-channel" ,rust-futures-channel-0.3)
+                            ("rust-futures-core" ,rust-futures-core-0.3)
+                            ("rust-futures-util" ,rust-futures-util-0.3)
+                            ("rust-glib" ,rust-glib-0.15)
+                            ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18)
+                            ("rust-libc" ,rust-libc-0.2)
+                            ("rust-muldiv" ,rust-muldiv-1)
+                            ("rust-num-integer" ,rust-num-integer-0.1)
+                            ("rust-num-rational" ,rust-num-rational-0.4)
+                            ("rust-once-cell" ,rust-once-cell-1)
+                            ("rust-option-operations" ,rust-option-operations-0.4)
+                            ("rust-paste" ,rust-paste-1)
+                            ("rust-pretty-hex" ,rust-pretty-hex-0.3)
+                            ("rust-serde" ,rust-serde-1)
+                            ("rust-serde-bytes" ,rust-serde-bytes-0.11)
+                            ("rust-thiserror" ,rust-thiserror-1))
+           #:cargo-development-inputs
+            `(("rust-futures-executor" ,rust-futures-executor-0.3)
+              ("rust-gir-format-check" ,rust-gir-format-check-0.1)
+              ("rust-ron" ,rust-ron-0.7)
+              ("rust-serde-json" ,rust-serde-json-1))))))
+
 (define-public rust-gstreamer-app-0.18
   (package
     (name "rust-gstreamer-app")