aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-09-18 14:07:49 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:04:19 +0200
commitdfd1ccfbe63ffe708bb98a85b920de349dd3807e (patch)
tree3c261b99cb2f7ec70ef07d1a9034df68073b2536 /gnu
parent9a23c8a0660ca5c87b0a3b1f9a56822b41c61be4 (diff)
downloadguix-dfd1ccfbe63ffe708bb98a85b920de349dd3807e.tar.gz
guix-dfd1ccfbe63ffe708bb98a85b920de349dd3807e.zip
gnu: Add rust-cairo-rs-0.19.
* gnu/packages/crates-gtk.scm (rust-cairo-rs-0.19): New variable. (rust-cairo-rs-0.18): Inherit from rust-cairo-rs-0.19. Change-Id: I6e75bfe4d1d1b3194152a0fbf2782456f2b1b1af
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-gtk.scm38
1 files changed, 30 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 9c01ce3142..4447a4e848 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -172,8 +172,37 @@
#:cargo-development-inputs
(("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+(define-public rust-cairo-rs-0.19
+ (package
+ (name "rust-cairo-rs")
+ (version "0.19.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cairo-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0qp5rixgipdj9d8yd5458hzfxam1rgpzcxi90vq6q0v91r6jmb5j"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+ ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.19)
+ ("rust-freetype-rs" ,rust-freetype-rs-0.35)
+ ("rust-glib" ,rust-glib-0.19)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-thiserror" ,rust-thiserror-1))
+ #:cargo-development-inputs (("rust-float-eq" ,rust-float-eq-1)
+ ("rust-tempfile" ,rust-tempfile-3))))
+ (native-inputs (list pkg-config))
+ (inputs (list cairo))
+ (home-page "https://gtk-rs.org/")
+ (synopsis "Rust bindings for the Cairo library")
+ (description "This package provides Rust bindings for the Cairo library.")
+ (license license:expat)))
+
(define-public rust-cairo-rs-0.18
(package
+ (inherit rust-cairo-rs-0.19)
(name "rust-cairo-rs")
(version "0.18.5")
(source
@@ -183,7 +212,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1qjfkcq3mrh3p01nnn71dy3kn99g21xx3j8xcdvzn8ll2pq6x8lc"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.18)
@@ -194,13 +222,7 @@
("rust-once-cell" ,rust-once-cell-1)
("rust-thiserror" ,rust-thiserror-1))
#:cargo-development-inputs (("rust-float-eq" ,rust-float-eq-1)
- ("rust-tempfile" ,rust-tempfile-3))))
- (native-inputs (list pkg-config))
- (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.17
(package