Subject: [bug#66717] [PATCH 38/64] gnu: Add rust-jack-0.10.

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

* gnu/packages/crates-io.scm (rust-jack-0.10): New variable.
---
 gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5eee503436..eb6509c837 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35463,8 +35463,38 @@ (define-public rust-ivf-0.1
     (description "This package provides a simple ivf muxer.")
     (license license:bsd-2)))
 
+(define-public rust-jack-0.10
+  (package
+    (name "rust-jack")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "jack" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0djs3j0icxbzbivhj73vgjrvjw6ncpfak2vyxjcbn4wvl9ajcwnf"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:tests? #f
+           #:cargo-inputs
+           `(("rust-bitflags" ,rust-bitflags-1)
+             ("rust-jack-sys" ,rust-jack-sys-0.4)
+             ("rust-lazy-static" ,rust-lazy-static-1)
+             ("rust-libc" ,rust-libc-0.2)
+             ("rust-log" ,rust-log-0.4))
+           #:cargo-development-inputs
+           `(("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5))))
+    (native-inputs (list pkg-config))
+    (inputs (list jack-2))
+    (home-page "https://github.com/RustAudio/rust-jack")
+    (synopsis "Real time audio and midi with JACK")
+    (description "Real time audio and midi with JACK.")
+    (license license:expat)))
+
 (define-public rust-jack-0.8
   (package
+    (inherit rust-jack-0.10)
     (name "rust-jack")
     (version "0.8.4")
     (source (origin
@@ -35474,7 +35504,6 @@ (define-public rust-jack-0.8
               (sha256
                (base32
                 "0lz10s0n2gy128m65pf96is9ip00vfgvnkfja0y9ydmv24pw2ajx"))))
-    (build-system cargo-build-system)
     (arguments
      (list #:tests? #f
            #:cargo-inputs `(("rust-bitflags" ,rust-bitflags-1)
@@ -35482,13 +35511,7 @@ (define-public rust-jack-0.8
                             ("rust-lazy-static" ,rust-lazy-static-1)
                             ("rust-libc" ,rust-libc-0.2)
                             ("rust-log" ,rust-log-0.4)
-                            ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5))))
-    (inputs (list jack-2))
-    (home-page "https://github.com/RustAudio/rust-jack")
-    (synopsis "Rust bindings for the JACK low-latency audio and MIDI system")
-    (description "This package provides bindings for the JACK low-latency
-and MIDI audio server.")
-    (license license:expat)))
+                            ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5))))))
 
 (define-public rust-jack-sys-0.4
   (package
@@ -35508,7 +35531,7 @@ (define-public rust-jack-sys-0.4
                        ("rust-lazy-static" ,rust-lazy-static-1)
                        ("rust-libc" ,rust-libc-0.2)
                        ("rust-libloading" ,rust-libloading-0.7)
-                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+        ("rust-pkg-config" ,rust-pkg-config-0.3))))
     (native-inputs (list pkg-config))
     (inputs (list jack-2))
     (home-page "https://github.com/RustAudio/rust-jack/tree/main/jack-sys")
-- 
2.41.0