aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2024-11-06 21:41:24 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:09 +0200
commit298b54f5d96156eaf72999b5f7b4a702769789e9 (patch)
treefda39d58c4abf6beea99e808689cc484026e679a /gnu/packages/crates-gtk.scm
parent35eaec019ed0a53a6e091d2b6df4867ede56287a (diff)
downloadguix-298b54f5d96156eaf72999b5f7b4a702769789e9.tar.gz
guix-298b54f5d96156eaf72999b5f7b4a702769789e9.zip
gnu: Add rust-gdk4-0.8.
* gnu/packages/crates-gtk.scm (rust-gdk4-0.8): New variable. (rust-gd4-0.7): Inherit from rust-gdk4-0.8. Change-Id: I66df513b683b44414e4994f0225dda6f391e3dad
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm40
1 files changed, 32 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 510268d2e6..9232c11ded 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1112,8 +1112,39 @@
(("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3))))))
+(define-public rust-gdk4-0.8
+ (package
+ (name "rust-gdk4")
+ (version "0.8.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gdk4" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "01qak43mrlszsy9cfsmqk1ql4228m2rylbg514g3fsidsjfmq9nv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-cairo-rs" ,rust-cairo-rs-0.19)
+ ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.19)
+ ("rust-gdk4-sys" ,rust-gdk4-sys-0.8)
+ ("rust-gio" ,rust-gio-0.19)
+ ("rust-gl" ,rust-gl-0.14)
+ ("rust-glib" ,rust-glib-0.19)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pango" ,rust-pango-0.19))
+ #:cargo-development-inputs
+ (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+ (native-inputs (list pkg-config))
+ (inputs (list cairo gdk-pixbuf gtk))
+ (home-page "https://gtk-rs.org/")
+ (synopsis "Rust bindings of the GDK 4 library")
+ (description "This package provides rust bindings of the GDK 4 library.")
+ (license license:expat)))
+
(define-public rust-gdk4-0.7
(package
+ (inherit rust-gdk4-0.8)
(name "rust-gdk4")
(version "0.7.3")
(source
@@ -1123,7 +1154,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1xiacc63p73apr033gjrb9dsk0y4yxnsljwfxbwfry41snd03nvy"))))
- (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)
@@ -1135,13 +1165,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 cairo gdk-pixbuf gtk))
- (home-page "https://gtk-rs.org/")
- (synopsis "Rust bindings of the GDK 4 library")
- (description "This package provides rust bindings of the GDK 4 library.")
- (license license:expat)))
+ (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
(define-public rust-gdk4-sys-0.8
(package