Subject: [PATCH 2/4] gnu: Add rust-libheif-sys-1.

From: Sergio Pastor Pérez <[email-masked]>
Date: Sun, 5 May 2024 16:44:06 +0200

* gnu/packages/crates-io.scm (rust-libheif-sys-1): New variable.

Change-Id: Ibdcebc3a8866732319da55802a1a789f8ccfb46e
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8391e51535..5fff81c265 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33761,6 +33761,29 @@ (define-public rust-libfuzzer-sys-0.3
        (("rust-arbitrary" ,rust-arbitrary-0.4)
         ("rust-cc" ,rust-cc-1))))))
 
+(define-public rust-libheif-sys-1
+  (package
+    (name "rust-libheif-sys")
+    (version "1.16.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libheif-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "072mw23fv5nb2xmx7xa4g2ciafwvalfxqrms3wwr4n5rrqbrdv1g"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.66)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-vcpkg" ,rust-vcpkg-0.2))))
+    (home-page "https://github.com/cykooz/libheif-sys")
+    (synopsis "Rust bindings for libheif")
+    (description "This package provides rust libheif bindings.")
+    (license license:expat)))
+
 (define-public rust-libloading-0.8
   (package
     (name "rust-libloading")
-- 
2.41.0