unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: 51193@debbugs.gnu.org
Subject: [bug#51193] Subject: [PATCH 3/4] gnu: Add rust-libpulse-binding-2.
Date: Wed, 13 Oct 2021 22:11:11 +0000	[thread overview]
Message-ID: <cEKxLQHSkoQionfKbuWgVP82V_adgN5M3F6hyhrXbpd8UDm2HaJAmMMtE_e7rmbkqKtccpnCvaCyUgy0_aRF1vCVyNjKgiuyTlvg-hsayHc=@protonmail.com> (raw)
In-Reply-To: <z5j7TKb8VrWU9lXZ7vQfuQqPDC8KK9CJECAEKOu76TomEMrzKlXqeGIxxazbhfty5UwM3IPIaIspta3OggHKqYX38hG64suNvbhyehsKGYI=@protonmail.com>

* gnu/packages/crates-io.scm (rust-libpulse-binding-2): New variable.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c5703804df..67aa8f04da 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25285,6 +25285,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
--
2.33.0




  parent reply	other threads:[~2021-10-13 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 22:07 [bug#51193] Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 phodina via Guix-patches via
2021-10-13 22:10 ` [bug#51193] Subject: [PATCH 2/4] gnu: Add rust-libpulse-sys-1 phodina via Guix-patches via
2021-10-13 22:11 ` phodina via Guix-patches via [this message]
2021-10-13 22:11 ` [bug#51193] Subject: [PATCH 4/4] gnu: Add i3status-rust phodina via Guix-patches via
2021-11-08  8:55 ` bug#51193: Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 Efraim Flashner
2021-11-08 17:34 ` [bug#51193] [PATCH] gnu: Update i3status-rust phodina via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cEKxLQHSkoQionfKbuWgVP82V_adgN5M3F6hyhrXbpd8UDm2HaJAmMMtE_e7rmbkqKtccpnCvaCyUgy0_aRF1vCVyNjKgiuyTlvg-hsayHc=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=51193@debbugs.gnu.org \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).