Subject: [PATCH v2 25/44] gnu: Add rust-gdkx11-0.17.

From: Murilo <[email-masked]>
Date: Fri, 31 May 2024 09:38:15 -0300

* gnu/packages/crates-gtk.scm (rust-gdkx11-0.17): New variable.

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

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 9c01ce3142..cb6bce0a23 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2022 Aleksandr Vityazev <[email-masked]>
 ;;; Copyright © 2023 Steve George <[email-masked]>
 ;;; Copyright © 2023 Sergio Pastor Pérez <[email-masked]>
+;;; Copyright © 2024 Murilo <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1008,6 +1009,31 @@ (define-public rust-gdk4-sys-0.7
     (description "This package provides FFI bindings of GDK 4.")
     (license license:expat)))
 
+(define-public rust-gdkx11-0.17
+  (package
+    (name "rust-gdkx11")
+    (version "0.17.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdkx11" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kyc7arci0s5v1y9c3snnqqpq4329fjlq7kdh7iyivgy1z3fzy88"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-x11" ,rust-x11-2)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-glib" ,rust-glib-0.17)
+                       ("rust-gio" ,rust-gio-0.17)
+                       ("rust-gdkx11-sys" ,rust-gdkx11-sys-0.17)
+                       ("rust-gdk" ,rust-gdk-0.17))))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "Rust bindings for the GDK X11 library")
+    (description "Rust bindings for the GDK X11 library")
+    (license license:expat)))
+
 (define-public rust-gio-0.18
   (package
     (name "rust-gio")
-- 
2.41.0