diff mbox series

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

Message ID af896bc72e76fe142412ede82706932ad61e9dd4.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-sys-0.7): Add variable.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 8b8a07a22f..991d6b2406 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1067,6 +1067,35 @@  (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 ; missing gtk4-win32
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))
+       #:cargo-inputs (("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.18)
+                       ("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))))
+    (native-inputs (list pkg-config))
+    (inputs (list cairo gdk-pixbuf glib gtk pango))
+    (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")