Subject: [PATCH 30/52] gnu: Add rust-libhandy-sys-0.5.

From: Leo Prikler <[email-masked]>
Date: Wed, 24 Feb 2021 12:11:13 +0100

* gnu/packages/crates-gtk.scm (rust-libhandy-sys-0.5): New variable.
---
 gnu/packages/crates-gtk.scm | 47 +++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 8e521cadd6..606aaf1463 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1640,6 +1640,53 @@ converts raw links to http links and strips unwanted tags.")
     (description "Generates user avatars using username initials")
     (license license:gpl3+)))
 
+(define-public rust-libhandy-sys-0.5
+  (package
+    (name "rust-libhandy-sys")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libhandy-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0ih4ws1d9n4qp4rwgsfilklgchqq3prnrb7h3avik1wi5s2ay1yp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-gdk" ,rust-gdk-0.12)
+        ("rust-gdk-sys" ,rust-gdk-sys-0.9)
+        ("rust-gio" ,rust-gio-0.8)
+        ("rust-gio-sys" ,rust-gio-sys-0.9)
+        ("rust-glib-sys" ,rust-glib-sys-0.9)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.9)
+        ("rust-gtk-sys" ,rust-gtk-sys-0.9)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-pango-sys" ,rust-pango-sys-0.9)
+        ("rust-pkg-config" ,rust-pkg-config-0.3))
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-0.1)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("atk" ,atk)
+       ("cairo" ,cairo)
+       ("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("libhandy" ,(module-ref (resolve-interface '(gnu packages gnome))
+                                'libhandy-0.0))
+       ("pango" ,pango)))
+    (home-page
+     "https://gitlab.gnome.org/World/Rust/libhandy-rs")
+    (synopsis
+     "The sys part of the rust bindings for libhandy")
+    (description
+     "The sys part of the rust bindings for libhandy")
+    (license license:gpl3+)))
+
 (define-public rust-pango-0.9
   (package
     (name "rust-pango")
-- 
2.30.1