Subject: [PATCH v2 35/44] gnu: Add rust-atk-sys-0.17.

From: Murilo <[email-masked]>
Date: Fri, 31 May 2024 09:38:25 -0300

* gnu/packages/crates-gtk.scm (rust-atk-sys-0.17): New variable.
* gnu/packages/crates-gtk.scm (rust-atk-sys-0.14): Update package definition
to inherit from newer version.

Change-Id: I1fc7f8a4bc633ec9c64b8fc7a3ce065f3f5d993f
---
 gnu/packages/crates-gtk.scm | 40 ++++++++++++++++++++++++++++---------
 1 file changed, 31 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a5976dede0..3ac2d0c76b 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -41,25 +41,24 @@ (define-module (gnu packages crates-gtk)
 ;;;
 ;;; Please: Try to add new module packages in alphabetic order.
 ;;;
-(define-public rust-atk-sys-0.14
+(define-public rust-atk-sys-0.17
   (package
     (name "rust-atk-sys")
-    (version "0.14.0")
+    (version "0.17.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "atk-sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1sl3pqfb2jaf9kcfxj9k43d7iv8gcl5zgdgn3j5vp13w2mqgdp5s"))))
+        (base32 "143fzw63fgplw4zr2d0jpikngq41lmjwvy6q5xvdbyvjlmy0mgz3"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f                      ; missing files
-       #:cargo-inputs
-       (("rust-glib-sys" ,rust-glib-sys-0.14)
-        ("rust-gobject-sys" ,rust-gobject-sys-0.14)
-        ("rust-libc" ,rust-libc-0.2)
-        ("rust-system-deps" ,rust-system-deps-3))
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-system-deps" ,rust-system-deps-6)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.17)
+                       ("rust-glib-sys" ,rust-glib-sys-0.17))
        #:cargo-development-inputs
        (("rust-shell-words" ,rust-shell-words-1)
         ("rust-tempfile" ,rust-tempfile-3))))
@@ -71,6 +70,29 @@ (define-public rust-atk-sys-0.14
     (description "FFI bindings to libatk-1")
     (license license:expat)))
 
+(define-public rust-atk-sys-0.14
+  (package
+    (inherit rust-atk-sys-0.17)
+    (name "rust-atk-sys")
+    (version "0.14.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "atk-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1sl3pqfb2jaf9kcfxj9k43d7iv8gcl5zgdgn3j5vp13w2mqgdp5s"))))
+    (arguments
+     `(#:tests? #f                      ; missing files
+       #:cargo-inputs
+       (("rust-glib-sys" ,rust-glib-sys-0.14)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.14)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-system-deps" ,rust-system-deps-3))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-atk-sys-0.10
   (package
     (inherit rust-atk-sys-0.14)
-- 
2.41.0