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
This commit is contained in:
Efraim Flashner 2024-03-28 21:39:45 +02:00
parent 16f75c7471
commit add9501e53
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3054,8 +3054,37 @@ (define-public rust-pango-sys-0.9
(("rust-shell-words" ,rust-shell-words-0.1) (("rust-shell-words" ,rust-shell-words-0.1)
("rust-tempfile" ,rust-tempfile-3)))))) ("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 (define-public rust-pangocairo-0.17
(package (package
(inherit rust-pangocairo-0.18)
(name "rust-pangocairo") (name "rust-pangocairo")
(version "0.17.10") (version "0.17.10")
(source (source
@ -3065,7 +3094,6 @@ (define-public rust-pangocairo-0.17
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1kr2b31034b8zif4r3lf4rniqphk2bxi2q7n8iwq2wrf3k5jkgw6")))) (base32 "1kr2b31034b8zif4r3lf4rniqphk2bxi2q7n8iwq2wrf3k5jkgw6"))))
(build-system cargo-build-system)
(arguments (arguments
`(;; FIXME: error[E0277]: `Errors` doesn't implement `std::fmt::Display` `(;; FIXME: error[E0277]: `Errors` doesn't implement `std::fmt::Display`
#:tests? #f #:tests? #f
@ -3077,16 +3105,7 @@ (define-public rust-pangocairo-0.17
("rust-pango" ,rust-pango-0.17) ("rust-pango" ,rust-pango-0.17)
("rust-pangocairo-sys" ,rust-pangocairo-sys-0.17)) ("rust-pangocairo-sys" ,rust-pangocairo-sys-0.17))
#:cargo-development-inputs #:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1)))) (("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.15 (define-public rust-pangocairo-0.15
(package (package