Subject: [PATCH 09/64] gnu: Add rust-alsa-sys.

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 52a2ccf876..697718ca1f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3092,6 +3092,31 @@ (define-public rust-allocator-api2-0.2
     (description "Mirror of Rust's allocator API.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-alsa-sys-0.3
+  (package
+    (name "rust-alsa-sys")
+    (version "0.3.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "alsa-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "09qmmnpmlcj23zcgx2xsi4phcgm5i02g9xaf801y7i067mkfx3yv"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:tests? #f ;doc tests fail
+           #:skip-build? #f
+           #:cargo-inputs `(("rust-libc" ,rust-libc-0.2)
+                            ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (native-inputs (list pkg-config alsa-lib))
+    (home-page "https://github.com/diwic/alsa-sys")
+    (synopsis "FFI bindings for the ALSA sound API")
+    (description
+     "FFI bindings for the ALSA sound API.  This package contains
+the code to interact with the underlying operating system ALSA interface.")
+    (license license:expat)))
+
 (define-public rust-alto-3
   (package
     (name "rust-alto")
-- 
2.41.0