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:08 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:56:42 +0200
commitb203f47639f46e9a90567f062d1e42f9cc01f9c2 (patch)
tree02929f86f8a7545a08776c96cdad63f40bd3c3aa /gnu/packages/crates-gtk.scm
parent7d12520cd6d9e5e9a1b80ff16d4778968b6ea4e6 (diff)
downloadguix-b203f47639f46e9a90567f062d1e42f9cc01f9c2.tar.gz
gnu: Add rust-libadwaita-0.5.
* gnu/packages/crates-gtk.scm (rust-libadwaita-0.5): New variable.

Change-Id: I48533d87282268a46e66b9235c6a86b52b5d82ec
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 807a1a5cb4..f21ff8a2ea 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2702,6 +2702,34 @@ library.")
     (description "This package provides FFI bindings of GTK 4.")
     (license license:expat)))
 
+(define-public rust-libadwaita-0.5
+  (package
+    (name "rust-libadwaita")
+    (version "0.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libadwaita" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "174pzn9dwsk8ikvrhx13vkh0zrpvb3rhg9yd2q5d2zjh0q6fgrrg"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.18)
+                       ("rust-gdk4" ,rust-gdk4-0.7)
+                       ("rust-gio" ,rust-gio-0.18)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-gtk4" ,rust-gtk4-0.7)
+                       ("rust-libadwaita-sys" ,rust-libadwaita-sys-0.5)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango" ,rust-pango-0.18))))
+    (native-inputs (list pkg-config))
+    (inputs (list libadwaita))
+    (home-page "https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs")
+    (synopsis "Rust bindings for libadwaita")
+    (description "Rust bindings for libadwaita.")
+    (license license:expat)))
+
 (define-public rust-libadwaita-sys-0.5
   (package
     (name "rust-libadwaita-sys")