diff mbox series

[bug#69257,rust-team,v3,50/75] gnu: Add rust-gstreamer-base-sys-0.21.

Message ID 5e2bb216256fe9226935390ede8a30ef52ab43ae.1714820130.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* gnu/packages/crates-gtk.scm (rust-gstreamer-base-sys-0.21): Add
variable.
(rust-gstreamer-base-sys-0.18): Inherit from
rust-gstreamer-base-sys-0.21.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 75f332a9f4..14f10783f0 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2481,8 +2481,39 @@  (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-sys-0.21
+  (package
+    (name "rust-gstreamer-base-sys")
+    (version "0.21.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-base-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0r2bb4rmkpxs1l2jy61rn2srqzsp1f8q0k5j55di3zkqj0gp1jpl"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#: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-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))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "FFI bindings to libgstbase-1.0")
+    (description
+      "This package provides FFI bindings to libgstbase-1.0, part of
+GStreamer.")
+    (license license:expat)))
+
 (define-public rust-gstreamer-base-sys-0.18
   (package
+    (inherit rust-gstreamer-base-sys-0.21)
     (name "rust-gstreamer-base-sys")
     (version "0.18.0")
     (source
@@ -2492,21 +2523,15 @@  (define-public rust-gstreamer-base-sys-0.18
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "13h79fcn3b9bkg7h8j0vxc1zryp92shbvvk6gkx723il7hy4k0x0"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.15)
                        ("rust-gobject-sys" ,rust-gobject-sys-0.15)
                        ("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))))
-    (native-inputs (list pkg-config))
-    (inputs (list glib gstreamer))
-    (home-page "https://gstreamer.freedesktop.org")
-    (synopsis "FFI bindings to libgstbase-1.0")
-    (description "FFI bindings to libgstbase-1.0, part of GStreamer.")
-    (license license:expat)))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-gstreamer-sys-0.21
   (package