diff mbox series

[bug#69257,rust-team,v3,73/75] gnu: Add rust-gdk4-win32-0.7.

Message ID 2bfc785c75163494d693f5c0e783944f6ff4743c.1714820131.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* gnu/packages/crates-gtk.scm (rust-gdk4-win32-0.7): Add variable.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 991d6b2406..4ec6736329 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1067,6 +1067,40 @@  (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-0.7
+  (package
+    (name "rust-gdk4-win32")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdk4-win32" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0mv04mipl57v1lj94j2rkrk9qm75jvdlnp7qm6nl2kpn8466arpy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t ; missing gtk4-win32
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1)
+        ("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))
+       #:cargo-inputs (("rust-gdk4" ,rust-gdk4-0.7)
+                       ("rust-gdk4-win32-sys" ,rust-gdk4-win32-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-system-deps" ,rust-system-deps-6)
+                       ("rust-windows" ,rust-windows-0.48))))
+    (native-inputs (list pkg-config))
+    (inputs (list gtk pango))
+    (home-page "https://gtk-rs.org/gtk4-rs")
+    (synopsis "Rust bindings of the GDK4 Win32 library")
+    (description
+     "This package provides Rust bindings of the GDK4 Win32 library.")
+    (license license:expat)))
+
 (define-public rust-gdk4-win32-sys-0.7
   (package
     (name "rust-gdk4-win32-sys")