diff mbox series

[bug#69257,rust-team,v3,54/75] gnu: Add rust-gstreamer-video-0.21.

Message ID 4f6b2eaa1564d096b785df252a136e45cd3c1b0f.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-video-0.21): Add variable.
---
 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 b5dc3b424b..33c31cde66 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2616,6 +2616,41 @@  (define-public rust-gstreamer-sys-0.18
            `(("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-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1)
+        ("rust-itertools" ,rust-itertools-0.11)
+        ("rust-serde-json" ,rust-serde-json-1))
+       #:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-futures-channel" ,rust-futures-channel-0.3)
+        ("rust-glib" ,rust-glib-0.18)
+        ("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-serde" ,rust-serde-1)
+        ("rust-thiserror" ,rust-thiserror-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib 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")