Subject: [bug#66717] [PATCH 20/64] gnu: Add rust-jack-0.8 and rust-jack-sys-0.2.

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

* gnu/packages/crates-io.scm (rust-jack-0.8): New variable.
* gnu/packages/crates-io.scm (rust-jack-sys-0.2): 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 ddaacc4bc0..792ed5262a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59,6 +59,7 @@ (define-module (gnu packages crates-io)
   #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages admin)
+  #:use-module (gnu packages audio)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
   #:use-module (gnu packages bash)
@@ -35122,6 +35123,56 @@ (define-public rust-ivf-0.1
     (description "This package provides a simple ivf muxer.")
     (license license:bsd-2)))
 
+(define-public rust-jack-0.8
+  (package
+    (name "rust-jack")
+    (version "0.8.4")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "jack" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0lz10s0n2gy128m65pf96is9ip00vfgvnkfja0y9ydmv24pw2ajx"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:tests? #f
+           #:cargo-inputs `(("rust-bitflags" ,rust-bitflags-1)
+                            ("rust-jack-sys" ,rust-jack-sys-0.2)
+                            ("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)))
+
+(define-public rust-jack-sys-0.2
+  (package
+    (name "rust-jack-sys")
+    (version "0.2.3")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "jack-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1h9c9za19nyr1prx77gkia18ia93f73lpyjdiyrvmhhbs79g54bv"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:cargo-inputs `(("rust-lazy-static" ,rust-lazy-static-1)
+                            ("rust-libc" ,rust-libc-0.2)
+                            ("rust-libloading" ,rust-libloading-0.6)
+                            ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (inputs (list jack-2))
+    (home-page "https://github.com/RustAudio/rust-jack/tree/main/jack-sys")
+    (synopsis "Low-level bindings to the JACK audio API")
+    (description "Low-level bindings to the JACK audio API.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-javascriptcore-rs-sys-0.2
   (package
     (name "rust-javascriptcore-rs-sys")
-- 
2.41.0