Subject: [bug#54299] [PATCH 07/27] added [email-masked]

From: Till Robin Zickel <[email-masked]>
Date: Tue, 8 Mar 2022 18:31:07 +0100

---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b8af85cd48..483b138054 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36380,6 +36380,27 @@ (define-public rust-ndk-0.2
      "This package provides safe Rust bindings to the Android NDK.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ndk-0.5
+  (package
+    (inherit rust-ndk-0.2)
+    (name "rust-ndk")
+    (version "0.5.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "ndk" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "17b9imdmv6cffr12bdpvxw1myxdyvaf6jwkmd3w7abn7akv6in4n"))))
+    (arguments
+     `(#:skip-build? #t ;XXX: Android only
+       #:cargo-inputs
+       (("rust-jni" ,rust-jni-0.18) ("rust-jni-glue" ,rust-jni-glue-0.0)
+        ("rust-jni-sys" ,rust-jni-sys-0.3)
+        ("rust-ndk-sys" ,rust-ndk-sys-0.2)
+        ("rust-num-enum" ,rust-num-enum-0.5)
+        ("rust-thiserror" ,rust-thiserror-1))))))
+
 (define-public rust-ndk-glue-0.2
   (package
     (name "rust-ndk-glue")
-- 
2.34.0