Subject: [bug#67515] [PATCH 87/91] gnu: Add rust-gtk4-macros-0.7.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:13:05 +0100

* gnu/packages/crates-gtk.scm (rust-gtk4-macros-0.7): New variable.

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

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 4a1862ea95..1b8ddc7f6a 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2436,6 +2436,34 @@ (define-public rust-gsk4-sys-0.7
     (description "FFI bindings of GSK 4")
     (license license:expat)))
 
+(define-public rust-gtk4-macros-0.7
+  (package
+    (name "rust-gtk4-macros")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gtk4-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bw3cchiycf7dw1bw4p8946gv38azxy05a5w0ndgcmxnz6fc8znm"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; GDK backend not initialized
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-proc-macro-crate" ,rust-proc-macro-crate-1)
+                       ("rust-proc-macro-error" ,rust-proc-macro-error-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quick-xml" ,rust-quick-xml-0.30)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-gtk4" ,rust-gtk4-0.7)
+                       ("rust-syn" ,rust-syn-1))))
+    (native-inputs (list pkg-config glib cairo pango gdk-pixbuf gtk))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "Macros helpers for GTK 4 bindings")
+    (description "Macros helpers for GTK 4 bindings")
+    (license license:expat)))
+
 (define-public rust-gtk4-sys-0.7
   (package
     (name "rust-gtk4-sys")
-- 
2.41.0