summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorphodina <phodina@protonmail.com>2021-10-13 22:11:11 +0000
committerEfraim Flashner <efraim@flashner.co.il>2021-11-04 20:09:53 +0200
commitb30e2834f7f3cc16689a31195637f452426ce3d0 (patch)
tree9d060013256f7843581088c90d448f8a527c572f /gnu/packages/crates-io.scm
parent468bb6710f3549076137217d680442ecc2cef0e5 (diff)
gnu: Add rust-libpulse-binding-2.
* gnu/packages/crates-io.scm (rust-libpulse-binding-2): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 81b8b596d2..3166f92bee 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26151,6 +26151,44 @@ file.
@end itemize")
(license license:gpl2+)))
+;; https://github.com/jnqnfe/pulse-binding-rust/blob/c788a8069f455f864d2ba5f0aa5f62e6648dfd26/pulse-sys/build.rs
+;; fix location of pulseaudio
+(define-public rust-libpulse-binding-2
+ (package
+ (name "rust-libpulse-binding")
+ (version "2.23.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libpulse-binding" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1qx85j489mmad9cvw5k71271l3qy4s8a5qq8a9wac6cfi4viz5fv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libpulse-sys" ,rust-libpulse-sys-1)
+ ("rust-num-derive" ,rust-num-derive-0.3)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp") #t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("pulseaudio" ,pulseaudio)))
+ (home-page "https://github.com/jnqnfe/pulse-binding-rust")
+ (synopsis "Binding for the PulseAudio libpulse library")
+ (description
+ "This package provides a Rust language binding for the PulseAudio libpulse
+library.")
+ (license (list license:expat license:asl2.0))))
(define-public rust-libpulse-sys-1
(package