From a480d1a0616e1512f58bab2ef21db3c06238c709 Mon Sep 17 00:00:00 2001
From: Jaeme Sifat <jaeme@runbox.com>
Date: Mon, 23 Oct 2023 01:26:14 -0400
Subject: [PATCH 2/2] gnu: Add rust-alsa
* gnu/packages/crates-io.scm (rust-alsa): New variable
Signed-off-by: Jaeme Sifat <jaeme@runbox.com>
Change-Id: Iad788607c6575cf5ad936932c26952868a63c220
---
gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
@@ -3070,6 +3070,33 @@ (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-0.8
+ (package
+ (name "rust-alsa")
+ (version "0.8.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "alsa" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "02k93vj8h789qx6as8yzi7r2wycqgmcsmk6m1pbb99dkwkhhjwww"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f
+ #:cargo-inputs (("rust-alsa-sys" ,rust-alsa-sys-0.3)
+ ("rust-bitflags" ,rust-bitflags-2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-nix" ,rust-nix-0.26))))
+ (inputs (list alsa-lib))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/diwic/alsa-rs")
+ (synopsis "Thin but safe wrappers for ALSA (Linux sound API)")
+ (description
+ "Thin but safe wrappers for ALSA in Rust, the most common API for
+accessing audio devices on Linux.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-alsa-sys-0.3
(package
(name "rust-alsa-sys")
--
2.34.1