Subject: [bug#73956] [PATCHv2 rust-team 09/27] gnu: Add rust-cairo-sys-rs-0.20.

From: Giacomo Leidi <[email-masked]>
Date: Wed, 6 Nov 2024 21:41:13 +0100

* gnu/packages/crates-gtk.scm (rust-cairo-sys-rs-0.20): New variable;
(rust-cairo-sys-rs-0.19): inherit from rust-cairo-sys-rs-0.20.

Change-Id: I5044a639615ae9f41b778ad690ba645f463043bd
---
 gnu/packages/crates-gtk.scm | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 5dcb9ec6d2..e18b6701d2 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -350,22 +350,22 @@ (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.19
+(define-public rust-cairo-sys-rs-0.20
   (package
     (name "rust-cairo-sys-rs")
-    (version "0.19.2")
+    (version "0.20.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "cairo-sys-rs" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0r0yp0lph77lm4blrn6fvdmz2i3r8ibkkjg6nmwbvvv4jq8v6fzx"))))
+        (base32 "13x85l52nl2izmdb48zzpkhhh1a4dsgqlp8gys4n1f5r2kwr10j2"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.19)
+     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.20)
                        ("rust-libc" ,rust-libc-0.2)
-                       ("rust-system-deps" ,rust-system-deps-6)
+                       ("rust-system-deps" ,rust-system-deps-7)
                        ("rust-windows-sys" ,rust-windows-sys-0.52)
                        ("rust-x11" ,rust-x11-2))))
     (native-inputs (list pkg-config))
@@ -375,6 +375,25 @@ (define-public rust-cairo-sys-rs-0.19
     (description "This package provides FFI bindings to libcairo.")
     (license license:expat)))
 
+(define-public rust-cairo-sys-rs-0.19
+  (package
+    (inherit rust-cairo-sys-rs-0.20)
+    (name "rust-cairo-sys-rs")
+    (version "0.19.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cairo-sys-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0r0yp0lph77lm4blrn6fvdmz2i3r8ibkkjg6nmwbvvv4jq8v6fzx"))))
+    (arguments
+     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.19)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-system-deps" ,rust-system-deps-6)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52)
+                       ("rust-x11" ,rust-x11-2))))))
+
 (define-public rust-cairo-sys-rs-0.18
   (package
     (inherit rust-cairo-sys-rs-0.19)
-- 
2.46.0