Subject: [bug#73956] [PATCHv2 rust-team 14/27] gnu: Add rust-libadwaita-sys-0.6.

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

* gnu/packages/crates-gtk.scm (rust-libadwaita-sys-0.6): New variable;
(rust-libadwaita-sys-0.5): inherit from rust-libadwaita-sys-0.6.

Change-Id: Iab000ff1bd6113193a40600bd030943bcbf66615
---
 gnu/packages/crates-gtk.scm | 41 +++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 0fef956a7c..3f4065ba7a 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3162,28 +3162,28 @@ (define-public rust-libadwaita-0.5
     (description "Rust bindings for libadwaita.")
     (license license:expat)))
 
-(define-public rust-libadwaita-sys-0.5
+(define-public rust-libadwaita-sys-0.6
   (package
     (name "rust-libadwaita-sys")
-    (version "0.5.3")
+    (version "0.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "libadwaita-sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "16n6xsy6jhbj0jbpz8yvql6c9b89a99v9vhdz5s37mg1inisl42y"))))
+        (base32 "1a513qlanw6n8dksm1br20a7iz2x1ff5cgg9v5f2dq9bx7j4i9r3"))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; ‘AdwBannerClass’ undeclared
        #:cargo-inputs (("rust-gdk4-sys" ,rust-gdk4-sys-0.7)
-                       ("rust-gio-sys" ,rust-gio-sys-0.18)
-                       ("rust-glib-sys" ,rust-glib-sys-0.18)
-                       ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+                       ("rust-gio-sys" ,rust-gio-sys-0.20)
+                       ("rust-glib-sys" ,rust-glib-sys-0.20)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.20)
                        ("rust-gtk4-sys" ,rust-gtk4-sys-0.7)
                        ("rust-libc" ,rust-libc-0.2)
-                       ("rust-pango-sys" ,rust-pango-sys-0.18)
-                       ("rust-system-deps" ,rust-system-deps-6))
+                       ("rust-pango-sys" ,rust-pango-sys-0.20)
+                       ("rust-system-deps" ,rust-system-deps-7))
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))
     (native-inputs (list pkg-config))
@@ -3193,6 +3193,31 @@ (define-public rust-libadwaita-sys-0.5
     (description "FFI bindings for libadwaita.")
     (license license:expat)))
 
+(define-public rust-libadwaita-sys-0.5
+  (package
+    (inherit rust-libadwaita-sys-0.6)
+    (name "rust-libadwaita-sys")
+    (version "0.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libadwaita-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "16n6xsy6jhbj0jbpz8yvql6c9b89a99v9vhdz5s37mg1inisl42y"))))
+    (arguments
+     `(#:tests? #f  ; ‘AdwBannerClass’ undeclared
+       #:cargo-inputs (("rust-gdk4-sys" ,rust-gdk4-sys-0.7)
+                       ("rust-gio-sys" ,rust-gio-sys-0.18)
+                       ("rust-glib-sys" ,rust-glib-sys-0.18)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+                       ("rust-gtk4-sys" ,rust-gtk4-sys-0.7)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango-sys" ,rust-pango-sys-0.18)
+                       ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-pango-0.19
   (package
     (name "rust-pango")
-- 
2.46.0