From c2f6f6126a7660e1aed8b9906d35ab68ec131f80 Mon Sep 17 00:00:00 2001 From: Nicholas von Klitzing Date: Wed, 15 Dec 2021 23:49:01 +0100 Subject: [PATCH 27/29] gnu: Add rust-cairo-rs-0.14. * gnu/packages/crates-gtk.scm (rust-cairo-rs-0.14): New variable. --- gnu/packages/crates-gtk.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 59f6f2897a..721ee2c5be 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1569,6 +1569,33 @@ (define-public rust-cairo-sys-rs-0.14 (description "FFI bindings to libcairo") (license license:expat))) +(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)))) + (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-gtk-0.8 (package (name "rust-gtk") -- 2.34.0