diff mbox series

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

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

Change-Id: Ic1e4b926f51df7f1e40638881b1ee86cb6b7a4de
---
 gnu/packages/crates-gtk.scm | 37 ++++++++++++++++++++++++++++++-------
 1 file changed, 30 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index bbee190a02..cef3465a14 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2975,25 +2975,26 @@  (define-public rust-gstreamer-audio-sys-0.18
     (description "FFI bindings to libgstaudio, part of Gstreamer.")
     (license license:expat)))
 
-(define-public rust-gstreamer-base-0.18
+(define-public rust-gstreamer-base-0.21
   (package
     (name "rust-gstreamer-base")
-    (version "0.18.0")
+    (version "0.21.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "gstreamer-base" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0gw6sr75h01y3j6lpxhc7p1frvkba9a4imyyb2ppqh42cprkakr2"))))
+        (base32 "0zqnld0w2jqkz1m5xna3a3nnrpvrchpcrrzdgwim54540ilhn5fb"))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; https://github.com/gtk-rs/gtk3-rs/issues/768
-       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+       #:cargo-inputs (("rust-atomic-refcell" ,rust-atomic-refcell-0.1)
+                       ("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-base-sys" ,rust-gstreamer-base-sys-0.18)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-gstreamer" ,rust-gstreamer-0.21)
+                       ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.21)
                        ("rust-libc" ,rust-libc-0.2))
        #:cargo-development-inputs (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
     (native-inputs (list pkg-config))
@@ -3003,6 +3004,28 @@  (define-public rust-gstreamer-base-0.18
     (description "Rust bindings for GStreamer Base library.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gstreamer-base-0.18
+  (package
+    (inherit rust-gstreamer-base-0.21)
+    (name "rust-gstreamer-base")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-base" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0gw6sr75h01y3j6lpxhc7p1frvkba9a4imyyb2ppqh42cprkakr2"))))
+    (arguments
+     `(#: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-glib" ,rust-glib-0.15)
+                       ("rust-gstreamer" ,rust-gstreamer-0.18)
+                       ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.18)
+                       ("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+
 (define-public rust-gstreamer-base-sys-0.21
   (package
     (name "rust-gstreamer-base-sys")