aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-01-10 19:51:50 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-21 00:44:24 +0100
commitd14d33b2acbf4076afce7bf7083e6f8a7a9c3090 (patch)
treea3adf756672ccf7bf9bec9f8fee223e64be0c8ae /gnu/packages
parent881fb6e2e4a5024fe17c60dd28d8d007efffbe01 (diff)
downloadguix-d14d33b2acbf4076afce7bf7083e6f8a7a9c3090.tar
guix-d14d33b2acbf4076afce7bf7083e6f8a7a9c3090.tar.gz
gnu: Add rust-cairo-rs-0.14.
* gnu/packages/crates-gtk.scm (rust-cairo-rs-0.14): New variable. (rust-cairo-rs-0.9): Inherit from above. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-gtk.scm41
1 files changed, 33 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 92f7c4392c..3aa1dcfc5e 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -139,8 +139,40 @@
#:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+(define-public rust-cairo-rs-0.14
+ (package
+ (name "rust-cairo-rs")
+ (version "0.14.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cairo-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "10ml7hxzj6w5k6yjdkcmxx0ds4mnrn9j3bdbk1nmh36vg5cp5d9k"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build?
+ #t
+ #:cargo-inputs
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.14)
+ ("rust-freetype" ,rust-freetype-0.7)
+ ("rust-glib" ,rust-glib-0.14)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-thiserror" ,rust-thiserror-1))
+ #:cargo-development-inputs
+ (("rust-tempfile" ,rust-tempfile-3))))
+ (inputs
+ (list cairo))
+ (home-page "https://gtk-rs.org/")
+ (synopsis "Rust bindings for the Cairo library")
+ (description "Rust bindings for the Cairo library")
+ (license license:expat)))
+
(define-public rust-cairo-rs-0.9
(package
+ (inherit rust-cairo-rs-0.14)
(name "rust-cairo-rs")
(version "0.9.1")
(source
@@ -150,7 +182,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1f5x6ipfpzz0ffph0pg0xfkdfcbr0jp59714zz857jp88zhg5h65"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -163,13 +194,7 @@
("rust-libc" ,rust-libc-0.2)
("rust-thiserror" ,rust-thiserror-1))
#:cargo-development-inputs
- (("rust-tempfile" ,rust-tempfile-3))))
- (inputs
- (list cairo))
- (home-page "https://gtk-rs.org/")
- (synopsis "Rust bindings for the Cairo library")
- (description "Rust bindings for the Cairo library")
- (license license:expat)))
+ (("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-cairo-rs-0.8
(package