gnu: Add rust-cairo-sys-rs-0.18.

* gnu/packages/crates-gtk.scm (rust-cairo-sys-rs-0.18): New variable.
(rust-cairo-sys-rs-0.17): Inherit from rust-cairo-sys-rs-0.18.

Change-Id: I330896f186ac32ffb23d459e07e48b881921e017
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Sergio Pastor Pérez 2023-11-28 22:12:56 +01:00 committed by Efraim Flashner
parent 8808acb9df
commit e1b5928d74
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -305,8 +305,34 @@ (define-public rust-cairo-rs-0.8
(("rust-gtk-rs-lgpl-docs" ,rust-gtk-rs-lgpl-docs-0.1)
("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-cairo-sys-rs-0.18
(package
(name "rust-cairo-sys-rs")
(version "0.18.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "cairo-sys-rs" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0lfsxl7ylw3phbnwmz3k58j1gnqi6kc2hdc7g3bb7f4hwnl9yp38"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.18)
("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.17
(package
(inherit rust-cairo-sys-rs-0.18)
(name "rust-cairo-sys-rs")
(version "0.17.10")
(source
@ -316,22 +342,13 @@ (define-public rust-cairo-sys-rs-0.17
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1ccw4z59dx60khngx79g64c75abfwy7wnq57h2z82j7vn5k0q7b9"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-glib-sys" ,rust-glib-sys-0.17)
("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)))
("rust-x11" ,rust-x11-2))))))
(define-public rust-cairo-sys-rs-0.15
(package