diff mbox series

[bug#74233,PATCHv2,rust-team,36/40] gnu: Add rust-gdk4-win32-sys-0.7.

Message ID 5129b46ec09d2cb56dca13485f1af2319ced3e8e.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:22 p.m. UTC
* gnu/packages/crates-gtk.scm (rust-gdk4-win32-sys-0.7): New variable.

Change-Id: I17e4edc0df6537b483c97f00a2fe8c37da93c5c4
---
 gnu/packages/crates-gtk.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 2054f3e903..40e7a8655c 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1281,6 +1281,31 @@  (define-public rust-gdk4-wayland-sys-0.7
     (description "This package provides FFI bindings of GDK4 Wayland.")
     (license license:expat)))
 
+(define-public rust-gdk4-win32-sys-0.7
+  (package
+    (name "rust-gdk4-win32-sys")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdk4-win32-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0v9rkv1i1sbzckigdr5zjy0xzz6qf9iccikvg3qxjfnd8rsihp2b"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-gdk4-sys" ,rust-gdk4-sys-0.7)
+                       ("rust-glib-sys" ,rust-glib-sys-0.18)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://gtk-rs.org/gtk4-rs")
+    (synopsis "FFI bindings of GDK4 Win32")
+    (description "This package provides FFI bindings of GDK4 Win32.")
+    (license license:expat)))
+
 (define-public rust-gdk4-x11-0.7
   (package
     (name "rust-gdk4-x11")