From 5a062eca422943dfeca62c533826424a9b734904 Mon Sep 17 00:00:00 2001
From: Jaeme Sifat <jaeme@runbox.com>
Date: Mon, 23 Oct 2023 01:19:50 -0400
Subject: [PATCH 1/2] gnu: Add rust-alsa-sys
* gnu/packages/crates-io.scm (rust-alsa-sys): New variable
Signed-off-by: Jaeme Sifat <jaeme@runbox.com>
Change-Id: I5627b473797f129205b0148d0baf094503188c5d
---
gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
@@ -3070,6 +3070,30 @@ (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
+ `(#:tests? #f ;doc tests fail due to scoping issues
+ #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-pkg-config" ,rust-pkg-config-0.3))))
+ (inputs (list alsa-lib))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/diwic/alsa-sys")
+ (synopsis
+ "FFI bindings for the ALSA project (Advanced Linux Sound Architecture)")
+ (description "This crate provides raw FFI bindings for ALSA.")
+ (license license:expat)))
+
(define-public rust-always-assert-0.1
(package
(name "rust-always-assert")
--
2.34.1