From 57f53463ae484638ac05433ff02fdca61e275edd Mon Sep 17 00:00:00 2001
From: Jaeme Sifat <jaeme@runbox.com>
Date: Mon, 23 Oct 2023 21:16: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: I9d1d18f6e815be28f29c78133ebc031d46b87197
---
gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
@@ -33,6 +33,7 @@
;;; Copyright © 2022 Paul Alesius <paul@unnservice.com>
;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose@gmail.com>
;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu>
+;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3070,6 +3071,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
+ `(#:tests? #f
+ #: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 "Raw FFI bindings for ALSA in Rust")
+ (description
+ "This crate provides FFI bindings for the ALSA project (Advanced Linux
+Sound Architecture) in Rust.")
+ (license license:expat)))
+
(define-public rust-always-assert-0.1
(package
(name "rust-always-assert")
--
2.34.1