From a2f1943493e87118579ab5da04713db45f774e0a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 4 Dec 2020 15:57:08 +0100 Subject: gnu: Add rust-cairo-sys-rs-0.10. * gnu/packages/crates-gtk.scm (rust-cairo-sys-rs-0.10): New variable. (rust-cairo-sys-rs-0.9): inherit from above. --- gnu/packages/crates-gtk.scm | 49 +++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 15 deletions(-) (limited to 'gnu/packages/crates-gtk.scm') diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 2ccd3a083b..4a3d2bb50a 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -152,34 +152,53 @@ #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)))))) -(define-public rust-cairo-sys-rs-0.9 +(define-public rust-cairo-sys-rs-0.10 (package (name "rust-cairo-sys-rs") - (version "0.9.2") + (version "0.10.0") (source - (origin - (method url-fetch) - (uri (crate-uri "cairo-sys-rs" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0qsdy6s57yvscg2rfm7wdqrlhzbn1aq9lhk3dy1vw5f7r81blrgz")))) + (origin + (method url-fetch) + (uri (crate-uri "cairo-sys-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19wch8zc11hbi724mn16hhqyff8kw5c5bsbdlzpxdwfmkadn7lif")))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs - (("rust-glib-sys" ,rust-glib-sys-0.9) + `(#:skip-build? #t + #:cargo-inputs + (("rust-glib-sys" ,rust-glib-sys-0.10) ("rust-libc" ,rust-libc-0.2) + ("rust-system-deps" ,rust-system-deps-1) ("rust-winapi" ,rust-winapi-0.3) - ("rust-x11" ,rust-x11-2) - ("rust-pkg-config" ,rust-pkg-config-0.3)))) + ("rust-x11" ,rust-x11-2)))) (inputs `(("cairo" ,cairo))) - (home-page "https://gtk-rs.org/") + (home-page "http://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.9 + (package + (inherit rust-cairo-sys-rs-0.10) + (name "rust-cairo-sys-rs") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "cairo-sys-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0qsdy6s57yvscg2rfm7wdqrlhzbn1aq9lhk3dy1vw5f7r81blrgz")))) + (arguments + `(#:cargo-inputs + (("rust-glib-sys" ,rust-glib-sys-0.9) + ("rust-libc" ,rust-libc-0.2) + ("rust-winapi" ,rust-winapi-0.3) + ("rust-x11" ,rust-x11-2) + ("rust-pkg-config" ,rust-pkg-config-0.3)))))) + (define-public rust-gdk-pixbuf-0.8 (package (name "rust-gdk-pixbuf") -- cgit 1.4.1