Subject: [PATCH 13/64] gnu: Add rust-ndk-0.6 & rust-ndk-sys-0.3.

From: Steve George <[email-masked]>
Date: Mon, 23 Oct 2023 23:20:58 +0100

* gnu/packages/crates-io.scm (rust-ndk-0.6): New variable.
* gnu/packages/crates-io.scm (rust-ndk-sys-0.3): New variable.
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0052a40e35..82150df330 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42842,6 +42842,28 @@ (define-public rust-ndk-0.7
      "This package provides safe Rust bindings to the Android NDK.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ndk-0.6
+  (package
+    (inherit rust-ndk-0.7)
+    (name "rust-ndk")
+    (version "0.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "ndk" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1m1dfjw35qpys1hr4qib6mm3zacd01k439l7cx5f7phd0dzcfci0"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("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.3)
+                       ("rust-num-enum" ,rust-num-enum-0.5)
+                       ("rust-thiserror" ,rust-thiserror-1))))))
+
 (define-public rust-ndk-0.5
   (package
     (inherit rust-ndk-0.7)
@@ -43023,6 +43045,19 @@ (define-public rust-ndk-sys-0.4
     (description "This package provides FFI bindings for the Android NDK.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ndk-sys-0.3
+  (package
+    (inherit rust-ndk-sys-0.4)
+    (name "rust-ndk-sys")
+    (version "0.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "ndk-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "15zsq4p6k5asf4mc0rknd8cz9wxrwvi50qdspgf87qcfgkknlnkf"))))))
+
 (define-public rust-ndk-sys-0.2
   (package
     (inherit rust-ndk-sys-0.4)
-- 
2.41.0