Subject: [bug#69257] [PATCH rust-team v3 10/75] gnu: Add rust-gdk4-x11-0.7.

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

* gnu/packages/crates-gtk.scm (rust-gdk4-x11-0.7): Add variable.

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

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index d69dbfe4df..223805273b 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1066,6 +1066,36 @@ (define-public rust-gdk4-wayland-sys-0.7
     (description "This package provides FFI bindings of GDK4 Wayland.")
     (license license:expat)))
 
+(define-public rust-gdk4-x11-0.7
+  (package
+    (name "rust-gdk4-x11")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdk4-x11" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0l54c1m0gsdm07drvy171a0i97ic2kygmzf3fjg4da0yxbwbpj98"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-gdk4" ,rust-gdk4-0.7)
+                       ("rust-gdk4-x11-sys" ,rust-gdk4-x11-sys-0.7)
+                       ("rust-gio" ,rust-gio-0.18)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-khronos-egl" ,rust-khronos-egl-5)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-x11" ,rust-x11-2))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+    (native-inputs (list pkg-config))
+    (inputs (list gtk))
+    (home-page "https://gtk-rs.org/gtk4-rs")
+    (synopsis "Rust bindings of the GDK4 X11 library")
+    (description
+      "This package provides Rust bindings of the GDK4 X11 library.")
+    (license license:expat)))
+
 (define-public rust-gdk4-x11-sys-0.7
   (package
     (name "rust-gdk4-x11-sys")
-- 
2.41.0