diff mbox series

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

Message ID 79c5ce07e8fbbb44c3450e89588b8d9e57d71ec8.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-video-0.21): New variable.

Change-Id: I15090141bc50a041e3b17a13fdec87e73c4ec5bc
---
 gnu/packages/crates-gtk.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 4244324298..91d084f5d0 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3176,6 +3176,41 @@  (define-public rust-gstreamer-sys-0.18
            #:cargo-development-inputs `(("rust-shell-words" ,rust-shell-words-1)
                                         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-gstreamer-video-0.21
+  (package
+    (name "rust-gstreamer-video")
+    (version "0.21.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-video" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1r8mhzb1bq4dnj08f4szgarxd2fvqbakwv400fp9hyiv3m6jlnz8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-futures-channel" ,rust-futures-channel-0.3)
+                       ("rust-glib" ,rust-glib-0.20)
+                       ("rust-gstreamer" ,rust-gstreamer-0.21)
+                       ("rust-gstreamer-base" ,rust-gstreamer-base-0.21)
+                       ("rust-gstreamer-video-sys" ,rust-gstreamer-video-sys-0.21)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-thiserror" ,rust-thiserror-1))
+       #:cargo-development-inputs (("rust-gir-format-check" ,rust-gir-format-check-0.1)
+                                   ("rust-gstreamer-check" ,rust-gstreamer-check-0.21)
+                                   ("rust-itertools" ,rust-itertools-0.11)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib gstreamer gst-plugins-base))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "Rust bindings for GStreamer Video library")
+    (description
+     "This package provides Rust bindings for GStreamer Video library.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gstreamer-video-sys-0.21
   (package
     (name "rust-gstreamer-video-sys")