aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-28 21:39:45 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:45:11 +0300
commitadd9501e5314ff0a44df6990fd2a0bdcd124a222 (patch)
tree1da40da62258a3bcc390a7e1e8913efee22cbc3e /gnu/packages/crates-gtk.scm
parent16f75c74715fd9840bdcc472d9258cc7b4741df4 (diff)
downloadguix-add9501e5314ff0a44df6990fd2a0bdcd124a222.tar.gz
guix-add9501e5314ff0a44df6990fd2a0bdcd124a222.zip
gnu: Add rust-pangocairo-0.18.
* gnu/packages/crates-gtk.scm (rust-pangocairo-0.18): New variable. (rust-pangocairo-0.17): Inherit from rust-pangocairo-0.18. Change-Id: Ic7df4167f4e672988660f190f346817bfa7f717c
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm41
1 files changed, 30 insertions, 11 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 65368e33e6..9c01ce3142 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3054,8 +3054,37 @@ library.")
(("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3))))))
+(define-public rust-pangocairo-0.18
+ (package
+ (name "rust-pangocairo")
+ (version "0.18.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "pangocairo" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "199qdgw5mf1vbqmslscy1qzz0szw2dcd21p6z61wzjngm64na0sp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-cairo-rs" ,rust-cairo-rs-0.18)
+ ("rust-glib" ,rust-glib-0.18)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pango" ,rust-pango-0.18)
+ ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.18))
+ #:cargo-development-inputs
+ (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+ (native-inputs (list pkg-config))
+ (inputs (list pango))
+ (home-page "https://gtk-rs.org/")
+ (synopsis "Rust bindings for the PangoCairo library")
+ (description
+ "This package provides Rust bindings for the @code{PangoCairo} library.")
+ (license license:expat)))
+
(define-public rust-pangocairo-0.17
(package
+ (inherit rust-pangocairo-0.18)
(name "rust-pangocairo")
(version "0.17.10")
(source
@@ -3065,7 +3094,6 @@ library.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1kr2b31034b8zif4r3lf4rniqphk2bxi2q7n8iwq2wrf3k5jkgw6"))))
- (build-system cargo-build-system)
(arguments
`(;; FIXME: error[E0277]: `Errors` doesn't implement `std::fmt::Display`
#:tests? #f
@@ -3077,16 +3105,7 @@ library.")
("rust-pango" ,rust-pango-0.17)
("rust-pangocairo-sys" ,rust-pangocairo-sys-0.17))
#:cargo-development-inputs
- (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list pango))
- (home-page "https://gtk-rs.org/")
- (synopsis "Rust bindings for the PangoCairo library")
- (description
- "This package provides Rust bindings for the @code{PangoCairo} library.")
- (license license:expat)))
+ (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
(define-public rust-pangocairo-0.15
(package