Subject: [PATCH 16/64] gnu: Add rust-oboe-0.4 and rust-oboe-sys-0.4.

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

* gnu/packages/crates-io.scm (rust-oboe-0.4): New variable.
* gnu/packages/crates-io.scm (rust-oboe-sys-0.4): New variable.
---
 gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 98b6d7207f..c94539b7b7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46204,6 +46204,57 @@ (define-public rust-object-0.27
         ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
         ("rust-wasmparser" ,rust-wasmparser-0.57))))))
 
+(define-public rust-oboe-0.4
+  (package
+    (name "rust-oboe")
+    (version "0.4.6")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "oboe" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1hd5626s8qkpgrl2alwz73i8rh1rzifbxj6pxz7zp82gicskrxi7"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:skip-build? #t ; requires Android libs
+           #:cargo-inputs `(("rust-jni" ,rust-jni-0.19)
+                            ("rust-ndk" ,rust-ndk-0.6)
+                            ("rust-ndk-context" ,rust-ndk-context-0.1)
+                            ("rust-num-derive" ,rust-num-derive-0.3)
+                            ("rust-num-traits" ,rust-num-traits-0.2)
+                            ("rust-oboe-sys" ,rust-oboe-sys-0.4))))
+    (home-page "https://github.com/katyo/oboe-rs")
+    (synopsis
+     "Safe interface for oboe an android library for low latency audio IO")
+    (description
+     "Safe interface for oboe an android library for low latency audio IO.")
+    (license license:asl2.0)))
+
+(define-public rust-oboe-sys-0.4
+  (package
+    (name "rust-oboe-sys")
+    (version "0.4.5")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "oboe-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1gcl494yy880h2gfgsbdd32g2h0s1n94v58j5hil9mrf6yvsnw1k"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:skip-build? #t ; requires Android libs
+           #:cargo-inputs `(("rust-bindgen" ,rust-bindgen-0.59)
+                            ("rust-cc" ,rust-cc-1)
+                            ("rust-fetch-unroll" ,rust-fetch-unroll-0.3))))
+    (home-page "https://github.com/katyo/oboe-rs")
+    (synopsis
+     "Unsafe bindings for oboe an android library for low latency audio IO")
+    (description
+     "Unsafe bindings for oboe an android library for low latency audio IO.")
+    (license license:asl2.0)))
+
 (define-public rust-odds-0.3
   (package
     (name "rust-odds")
-- 
2.41.0