aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2024-11-06 21:41:31 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:10 +0200
commit98641c957a54d13e0d18f0a0ff5f29dc19385dbf (patch)
tree47e73bb72c1c07ccbecf6c8747554c893fc5433e /gnu/packages/crates-gtk.scm
parent2c688f8314931c83896ce4f2ed4f96eace23ce90 (diff)
downloadguix-98641c957a54d13e0d18f0a0ff5f29dc19385dbf.tar.gz
guix-98641c957a54d13e0d18f0a0ff5f29dc19385dbf.zip
gnu: Add rust-libadwaita-0.6.
* gnu/packages/crates-gtk.scm (rust-libadwaita-0.6): New variable. (rust-libadwaita-0.5): Inherit from rust-libadwaita-0.6. Change-Id: I3244ee4e3114cdc1a61a1f0e4e1e1f165c131707
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm40
1 files changed, 28 insertions, 12 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 1825e7cd6a..f14d9ca144 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3422,15 +3422,38 @@ library.")
("rust-system-deps" ,rust-system-deps-6))
#:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
("rust-tempfile" ,rust-tempfile-3))))))
+
+(define-public rust-libadwaita-0.6
+ (package
+ (name "rust-libadwaita")
+ (version "0.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libadwaita" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1nf5hxmk1bzjj8hxavwgz04kiv3hxb52qjh9f9gfrqdr9019kd4i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.20)
+ ("rust-gdk4" ,rust-gdk4-0.8)
+ ("rust-gio" ,rust-gio-0.20)
+ ("rust-glib" ,rust-glib-0.20)
+ ("rust-gtk4" ,rust-gtk4-0.8)
+ ("rust-libadwaita-sys" ,rust-libadwaita-sys-0.6)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pango" ,rust-pango-0.20))))
(native-inputs (list pkg-config))
- (inputs (list cairo gdk-pixbuf graphene gtk pango))
- (home-page "https://gtk-rs.org/")
- (synopsis "FFI bindings of GTK 4")
- (description "This package provides FFI bindings of GTK 4.")
+ (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-0.5
(package
+ (inherit rust-libadwaita-0.6)
(name "rust-libadwaita")
(version "0.5.3")
(source
@@ -3440,7 +3463,6 @@ library.")
(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)
@@ -3449,13 +3471,7 @@ library.")
("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)))
+ ("rust-pango" ,rust-pango-0.18))))))
(define-public rust-libadwaita-sys-0.6
(package