From 807bd1ac449373c1da6feedc392ea7ca495b44f4 Mon Sep 17 00:00:00 2001 From: Steve George Date: Mon, 23 Oct 2023 23:21:27 +0100 Subject: [PATCH] gnu: Add rust-libpulse-simple-binding-2. * gnu/packages/crates-io.scm (rust-libpulse-simple-binding-2): New variable. Signed-off-by: Efraim Flashner Change-Id: I2d4b758ff3d30e7b43b1fb7292b90a76d3e20759 --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bf56854067..62c3845088 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37598,6 +37598,34 @@ (define-public rust-libpulse-binding-2 library.") (license (list license:expat license:asl2.0)))) +(define-public rust-libpulse-simple-binding-2 + (package + (name "rust-libpulse-simple-binding") + (version "2.28.1") + (source (origin + (method url-fetch) + (uri (crate-uri "libpulse-simple-binding" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "139hiksmxrmj8zcdqvswgjnwl1rivh915vg6cl92asizydl6pz85")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-libpulse-binding" ,rust-libpulse-binding-2) + ("rust-libpulse-simple-sys" ,rust-libpulse-simple-sys-1) + ("rust-libpulse-sys" ,rust-libpulse-sys-1)) + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-HOME + (lambda _ (setenv "HOME" "/tmp")))))) + (native-inputs (list pkg-config)) + (inputs (list pulseaudio)) + (home-page "https://github.com/jnqnfe/pulse-binding-rust") + (synopsis "Rust language bindings for PulseAudio's libpulse-simple library") + (description + "A Rust language binding for the PulseAudio libpulse-simple library.") + (license (list license:expat license:asl2.0)))) + (define-public rust-libpulse-simple-sys-1 (package (name "rust-libpulse-simple-sys")