summary refs log tree commit diff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorSergio Pastor PĂ©rez <sergio.pastorperez@outlook.es>2023-11-28 22:13:03 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:56:42 +0200
commitad91d62536807b72a0dabf137cc33c49d3d5da5c (patch)
tree5fc98c989a9ce9f12a25102265072bece0243ae8 /gnu/packages/crates-gtk.scm
parent5852fd6a364dd8ec5647e396eb5e516e93fc5751 (diff)
downloadguix-ad91d62536807b72a0dabf137cc33c49d3d5da5c.tar.gz
gnu: Add rust-gsk4-0.7.
* gnu/packages/crates-gtk.scm (rust-gsk4-0.7): New variable.

Change-Id: I0cf6fc19cc49ae1cff03a6e18c24eeccacd58431
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 9342f24ea8..2898434929 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2062,6 +2062,36 @@
     (description "FFI bindings to libgraphene-1.0.")
     (license license:expat)))
 
+(define-public rust-gsk4-0.7
+  (package
+    (name "rust-gsk4")
+    (version "0.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gsk4" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zhzs2dkgiinhgc11akpn2harq3x5n1iq21dnc4h689g3lsqx58d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; `Errors` doesn't implement `std::fmt::Display`
+       #:cargo-inputs (("rust-cairo-rs" ,rust-cairo-rs-0.18)
+                       ("rust-gdk4" ,rust-gdk4-0.7)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-graphene-rs" ,rust-graphene-rs-0.18)
+                       ("rust-gsk4-sys" ,rust-gsk4-sys-0.7)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango" ,rust-pango-0.18))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+    (native-inputs (list pkg-config))
+    (inputs (list gtk))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "Rust bindings of the GSK 4 library")
+    (description "Rust bindings of the GSK 4 library.")
+    (license license:expat)))
+
 (define-public rust-gsk4-sys-0.7
   (package
     (name "rust-gsk4-sys")