Subject: [PATCH rust-team v3 74/75] gnu: Add rust-gst-plugin-gtk4-0.11.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:46 +0200

* gnu/packages/crates-gtk.scm (rust-gst-plugin-gtk4-0.11): Add variable.

Change-Id: Iecb4b1b9d0f1884e3913259e8589b13511a7d026
---
 gnu/packages/crates-gtk.scm | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 4ec6736329..544d8871e0 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2308,6 +2308,44 @@ (define-public rust-gsk4-sys-0.7
     (description "This package provides FFI bindings of GSK 4.")
     (license license:expat)))
 
+(define-public rust-gst-plugin-gtk4-0.11
+  (package
+    (name "rust-gst-plugin-gtk4")
+    (version "0.11.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gst-plugin-gtk4" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1hmky9p16hnhrwm5i63ynlwfl1bpc9fp3as5ibrni1qlfq0vhwdj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-async-channel" ,rust-async-channel-2)
+        ("rust-gdk4-wayland" ,rust-gdk4-wayland-0.7)
+        ("rust-gdk4-win32" ,rust-gdk4-win32-0.7)
+        ("rust-gdk4-x11" ,rust-gdk4-x11-0.7)
+        ("rust-gst-plugin-version-helper"
+         ,rust-gst-plugin-version-helper-0.8)
+        ("rust-gstreamer" ,rust-gstreamer-0.21)
+        ("rust-gstreamer-base" ,rust-gstreamer-base-0.21)
+        ("rust-gstreamer-gl" ,rust-gstreamer-gl-0.21)
+        ("rust-gstreamer-gl-egl" ,rust-gstreamer-gl-egl-0.21)
+        ("rust-gstreamer-gl-wayland" ,rust-gstreamer-gl-wayland-0.21)
+        ("rust-gstreamer-gl-x11" ,rust-gstreamer-gl-x11-0.21)
+        ("rust-gstreamer-video" ,rust-gstreamer-video-0.21)
+        ("rust-gtk4" ,rust-gtk4-0.7)
+        ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (native-inputs (list pkg-config))
+    (inputs (list gst-plugins-base gtk))
+    (home-page "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs")
+    (synopsis "GStreamer GTK 4 Sink element and Paintable widget")
+    (description
+      "This package provides GStreamer GTK 4 Sink element and Paintable
+widget.")
+    (license license:mpl2.0)))
+
 (define-public rust-gst-plugin-version-helper-0.8
   (package
     (name "rust-gst-plugin-version-helper")
-- 
2.41.0