gnu: rust-cairo-sys: Add 0.15.1.

* gnu/packages/crates-gtk.scm (rust-cairo-sys-rs-0.15): New variable.
(rust-cairo-sys-rs-0.14): Inherit from it.
This commit is contained in:
Marius Bakke 2022-07-25 14:45:33 +02:00
parent e31cc7f0c9
commit 21e5e408bf
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -277,8 +277,37 @@ (define-public rust-cairo-rs-0.7
#:cargo-development-inputs #:cargo-development-inputs
(("rust-tempfile" ,rust-tempfile-3)))))) (("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-cairo-sys-rs-0.15
(package
(name "rust-cairo-sys-rs")
(version "0.15.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "cairo-sys-rs" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1j6k4pps3dv6g0vlpmxc2xyk0s40vj2wpzi55lbwjspmpqlx8m9w"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-glib-sys" ,rust-glib-sys-0.15)
("rust-libc" ,rust-libc-0.2)
("rust-system-deps" ,rust-system-deps-6)
("rust-winapi" ,rust-winapi-0.3)
("rust-x11" ,rust-x11-2))))
(native-inputs
(list pkg-config))
(inputs
(list cairo))
(home-page "https://gtk-rs.org/")
(synopsis "FFI bindings to libcairo")
(description "This package provides FFI bindings to libcairo.")
(license license:expat)))
(define-public rust-cairo-sys-rs-0.14 (define-public rust-cairo-sys-rs-0.14
(package (package
(inherit rust-cairo-sys-rs-0.15)
(name "rust-cairo-sys-rs") (name "rust-cairo-sys-rs")
(version "0.14.9") (version "0.14.9")
(source (source
@ -288,7 +317,6 @@ (define-public rust-cairo-sys-rs-0.14
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "0w3md4xk87ign30wb3rqfmmj0q6pvg5arbm35flgsd08jxvbhj5l")))) (base32 "0w3md4xk87ign30wb3rqfmmj0q6pvg5arbm35flgsd08jxvbhj5l"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? `(#:skip-build?
#t #t
@ -298,12 +326,7 @@ (define-public rust-cairo-sys-rs-0.14
("rust-system-deps" ,rust-system-deps-3) ("rust-system-deps" ,rust-system-deps-3)
("rust-winapi" ,rust-winapi-0.3) ("rust-winapi" ,rust-winapi-0.3)
("rust-x11" ,rust-x11-2)))) ("rust-x11" ,rust-x11-2))))
(inputs (native-inputs '())))
(list cairo))
(home-page "https://gtk-rs.org/")
(synopsis "FFI bindings to libcairo")
(description "This package provides FFI bindings to libcairo.")
(license license:expat)))
(define-public rust-cairo-sys-rs-0.10 (define-public rust-cairo-sys-rs-0.10
(package (package