Subject: [bug#71278] [PATCH 30/44] gnu: Add rust-gdk-sys-0.17.

From: Murilo <[email-masked]>
Date: Thu, 30 May 2024 12:17:57 -0300

* gnu/packages/crates-gtk.scm (rust-gdk-sys-0.17): New variable.

Change-Id: I8b421da0a80d04a1ecff635997cb1825f760f057
---
 gnu/packages/crates-gtk.scm | 43 ++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 45b2bb6bb6..db5c143bfa 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -879,8 +879,42 @@ (define-public rust-gdk-pixbuf-sys-0.9
        (("rust-shell-words" ,rust-shell-words-0.1)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-gdk-sys-0.17
+  (package
+    (name "rust-gdk-sys")
+    (version "0.17.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gdk-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00z77l8cyccgyb2qi84yym6qggzm7a1c17g47xxs2rxw72fxwli1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-system-deps" ,rust-system-deps-6)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-pango-sys" ,rust-pango-sys-0.17)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.17)
+                       ("rust-glib-sys" ,rust-glib-sys-0.17)
+                       ("rust-gio-sys" ,rust-gio-sys-0.17)
+                       ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.17)
+                       ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.17))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-0.1)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (inputs
+     (list cairo gdk-pixbuf gtk+ glib pango))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "FFI bindings to libgdk-3")
+    (description "FFI bindings to libgdk-3")
+    (license license:expat)))
+
 (define-public rust-gdk-sys-0.14
   (package
+    (inherit rust-gdk-sys-0.17)
     (name "rust-gdk-sys")
     (version "0.14.0")
     (source
@@ -890,7 +924,6 @@ (define-public rust-gdk-sys-0.14
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "07hz3gg039sy7iffy2w5srxzsnqf15i3ryxkqfd995k67lyin28f"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build?
        #t
@@ -906,13 +939,7 @@ (define-public rust-gdk-sys-0.14
         ("rust-system-deps" ,rust-system-deps-3))
        #:cargo-development-inputs
        (("rust-shell-words" ,rust-shell-words-0.1)
-        ("rust-tempfile" ,rust-tempfile-3))))
-    (inputs
-     (list cairo gdk-pixbuf gtk+ glib pango))
-    (home-page "https://gtk-rs.org/")
-    (synopsis "FFI bindings to libgdk-3")
-    (description "FFI bindings to libgdk-3")
-    (license license:expat)))
+        ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-gdk-sys-0.10
   (package
-- 
2.41.0