aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2024-11-06 21:41:29 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:09 +0200
commit3c646c72d9cb6efadc099e98c12226be30411576 (patch)
tree8ee859b704cec61404493578d4ed0f3b059a23c3 /gnu/packages/crates-gtk.scm
parent1bc781e8199b7dab537435bae96d67d415c04534 (diff)
downloadguix-3c646c72d9cb6efadc099e98c12226be30411576.tar.gz
guix-3c646c72d9cb6efadc099e98c12226be30411576.zip
gnu: Add rust-gtk4-sys-0.8.
* gnu/packages/crates-gtk.scm (rust-gtk4-sys-0.8): New variable. (rust-gtk4-sys-0.7): Intherit from rust-gtk4-sys-0.8. Change-Id: Id31435c704b9163d77e8a4d8f017bc630ac1788a
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm38
1 files changed, 36 insertions, 2 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index e36737bac6..2f820c78b8 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3304,8 +3304,43 @@ library.")
(description "Macros helpers for GTK 4 bindings.")
(license license:expat)))
+(define-public rust-gtk4-sys-0.8
+ (package
+ (name "rust-gtk4-sys")
+ (version "0.8.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gtk4-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1dapgvbkhf0kcm2jfmj8r98wzyhwmr5iv358dvb73sl5gxmsi2lc"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; Can't find gtk/gtk-a11y.h from gtk+
+ #:cargo-inputs (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.19)
+ ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.19)
+ ("rust-gdk4-sys" ,rust-gdk4-sys-0.8)
+ ("rust-gio-sys" ,rust-gio-sys-0.19)
+ ("rust-glib-sys" ,rust-glib-sys-0.19)
+ ("rust-gobject-sys" ,rust-gobject-sys-0.19)
+ ("rust-graphene-sys" ,rust-graphene-sys-0.19)
+ ("rust-gsk4-sys" ,rust-gsk4-sys-0.8)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pango-sys" ,rust-pango-sys-0.19)
+ ("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 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.")
+ (license license:expat)))
+
(define-public rust-gtk4-sys-0.7
(package
+ (inherit rust-gtk4-sys-0.8)
(name "rust-gtk4-sys")
(version "0.7.3")
(source
@@ -3315,7 +3350,6 @@ library.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1f2ylskyqkjdik9fij2m46pra4jagnif5xyalbxfk3334fmc9n2l"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; Can't find gtk/gtk-a11y.h from gtk+
#:cargo-inputs (("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.18)
@@ -3330,7 +3364,7 @@ library.")
("rust-pango-sys" ,rust-pango-sys-0.18)
("rust-system-deps" ,rust-system-deps-6))
#:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
- ("rust-tempfile" ,rust-tempfile-3))))
+ ("rust-tempfile" ,rust-tempfile-3))))))
(native-inputs (list pkg-config))
(inputs (list cairo gdk-pixbuf graphene gtk pango))
(home-page "https://gtk-rs.org/")