Subject: [bug#67515] [PATCH 84/91] gnu: Add rust-gsk4-sys-0.7.

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

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

Change-Id: I8d920484555f0c184c77757611857cf8bbdbc849
---
 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 2be6c9e60d..a89606de89 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2381,6 +2381,34 @@ (define-public rust-gtk3-macros-0.14
 library.")
     (license license:expat)))
 
+(define-public rust-gsk4-sys-0.7
+  (package
+    (name "rust-gsk4-sys")
+    (version "0.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gsk4-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0mbdlm9qi1hql48rr29vsj9vlqwc7gxg67wg1q19z67azwz9xg8j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; `GskFillRule` constant mismatch with gcc
+       #:cargo-inputs (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.18)
+                       ("rust-gdk4-sys" ,rust-gdk4-sys-0.7)
+                       ("rust-glib-sys" ,rust-glib-sys-0.18)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+                       ("rust-graphene-sys" ,rust-graphene-sys-0.18)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango-sys" ,rust-pango-sys-0.18)
+                       ("rust-system-deps" ,rust-system-deps-6))))
+    (native-inputs (list pkg-config gdk-pixbuf cairo pango graphene gtk))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "FFI bindings of GSK 4")
+    (description "FFI bindings of GSK 4")
+    (license license:expat)))
+
 (define-public rust-pango-0.17
   (package
     (name "rust-pango")
-- 
2.41.0