diff mbox series

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

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

Change-Id: Id35ab854edc7c7007ad1f92105a8107a2a7b43c6
---
 gnu/packages/crates-gtk.scm | 33 ++++++++++++++++++++++++++++-----
 1 file changed, 28 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index b88632de88..e53f2e3c63 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2992,21 +2992,24 @@  (define-public rust-gstreamer-base-sys-0.18
     (description "FFI bindings to libgstbase-1.0, part of GStreamer.")
     (license license:expat)))
 
-(define-public rust-gstreamer-sys-0.18
+(define-public rust-gstreamer-sys-0.21
   (package
     (name "rust-gstreamer-sys")
-    (version "0.18.0")
+    (version "0.21.2")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "gstreamer-sys" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1qikgp5m3xj41fbfyfl6ckb5i8dxadfvlvj5bf8girn2sdjpllg3"))))
+                "1i1vrqs9ys5y0ljl4nxh1x25dnwlcyh9hiybh4dysviy5dwdlk2n"))))
     (build-system cargo-build-system)
     (arguments
-     (list #:cargo-inputs `(("rust-glib-sys" ,rust-glib-sys-0.15)
-                            ("rust-gobject-sys" ,rust-gobject-sys-0.15)
+     (list #:tests? #f ;; tests/constant.c:193:20: error:
+                       ;; ?GST_ELEMENT_FACTORY_TYPE_TIMESTAMPER? undeclared (first use in this function);
+                       ;; did you mean ?GST_ELEMENT_FACTORY_TYPE_MUXER??
+           #:cargo-inputs `(("rust-glib-sys" ,rust-glib-sys-0.18)
+                            ("rust-gobject-sys" ,rust-gobject-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)
@@ -3019,6 +3022,26 @@  (define-public rust-gstreamer-sys-0.18
      "Foreign Function Interface (FFI) bindings to libgstreamer-1.0.")
     (license license:expat)))
 
+(define-public rust-gstreamer-sys-0.18
+  (package
+    (inherit rust-gstreamer-sys-0.21)
+    (name "rust-gstreamer-sys")
+    (version "0.18.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "gstreamer-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1qikgp5m3xj41fbfyfl6ckb5i8dxadfvlvj5bf8girn2sdjpllg3"))))
+    (arguments
+     (list #:cargo-inputs `(("rust-glib-sys" ,rust-glib-sys-0.15)
+                            ("rust-gobject-sys" ,rust-gobject-sys-0.15)
+                            ("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-gtk-0.14
   (package
     (name "rust-gtk")