diff mbox series

[bug#74233,rust-team,24/40] gnu: Add rust-gdk4-x11-sys-0.7.

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

Commit Message

Giacomo Leidi Nov. 6, 2024, 8:48 p.m. UTC
* gnu/packages/crates-gtk.scm (rust-gdk4-x11-sys-0.7): New variable.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 0ac3aba39e..87cf1f045c 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1280,6 +1280,34 @@  (define-public rust-gdk4-wayland-sys-0.7
     (description "This package provides FFI bindings of GDK4 Wayland.")
     (license license:expat)))
 
+(define-public rust-gdk4-x11-sys-0.7
+  (package
+    (name "rust-gdk4-x11-sys")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdk4-x11-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09gill32x6qy4s55xjckqvqrfxw4jfjrlcpmd4iijn076w4igpm3"))))
+    (build-system cargo-build-system)
+    (arguments
+     ;; tests/manual.h:3:10: fatal error: gdk/gdkx.h: No such file or directory
+     `(#:tests? #f
+       #: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))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib gtk))
+    (home-page "https://gtk-rs.org/gtk4-rs")
+    (synopsis "FFI bindings of GDK4 X11")
+    (description "This package provides FFI bindings of GDK4 X11.")
+    (license license:expat)))
+
 (define-public rust-gio-0.20
   (package
     (name "rust-gio")