Subject: [bug#67515] [PATCH 78/91] gnu: Add rust-cairo-sys-rs-0.18.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:56 +0100

* gnu/packages/crates-graphics.scm (rust-cairo-sys-rs-0.18): New variable.

Change-Id: I330896f186ac32ffb23d459e07e48b881921e017
---
 gnu/packages/crates-graphics.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 6a8426c255..4c7cba479d 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -347,6 +347,30 @@ (define-public rust-avif-serialize-0.6
        #:cargo-inputs
        (("rust-arrayvec" ,rust-arrayvec-0.5))))))
 
+(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 cairo))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "FFI bindings to libcairo")
+    (description "FFI bindings to libcairo")
+    (license license:expat)))
+
 (define-public rust-cgl-0.3
   (package
     (name "rust-cgl")
-- 
2.41.0