From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34987) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz9cl-0004Wc-3e for guix-patches@gnu.org; Tue, 04 Feb 2020 20:37:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz9cj-0001ey-Ow for guix-patches@gnu.org; Tue, 04 Feb 2020 20:37:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iz9cj-0001eo-M2 for guix-patches@gnu.org; Tue, 04 Feb 2020 20:37:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iz9cj-00023Y-JA for guix-patches@gnu.org; Tue, 04 Feb 2020 20:37:01 -0500 Subject: [bug#39422] [PATCH] gnu: Add pasystray. Resent-Message-ID: From: Amin Bandali References: <20200204153123.17099-1-mab@gnu.org> <20200205003140.GB30681@jasmine.lan> Date: Tue, 04 Feb 2020 20:36:05 -0500 In-Reply-To: <20200205003140.GB30681@jasmine.lan> Message-ID: <87imklvmre.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Leo Famulari Cc: 39422@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Leo Famulari writes: > On Tue, Feb 04, 2020 at 10:31:23AM -0500, Amin Bandali wrote: >> * gnu/packages/gtk.scm (pasystray): New variable. > > Thanks! Can we put it in the pulseaudio module? > Sure! Noting that now there's a circular import between the pulseaudio module and the gnome module because of dependency of pasystray on libnotify, defined in the gnome module. > >> + (add-before 'bootstrap 'remove-bootstrap.sh >> + (lambda _ >> + (delete-file "bootstrap.sh") ; not useful in the context of Guix >> + #t))))) > > Also, can you clarify this comment? Like, does it interfere with > building? > Yeah, exactly: --8<---------------cut here---------------start------------->8--- ... starting phase `bootstrap' running './bootstrap.sh' patch-shebang: ./bootstrap.sh: changing `/usr/bin/env bash' to `/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash' configure.ac:27: installing './compile' configure.ac:26: installing './install-sh' configure.ac:26: installing './missing' src/Makefile.am: installing './depcomp' ./bootstrap.sh: ./configure: /bin/sh: bad interpreter: No such file or directory command "./bootstrap.sh" failed with status 126 --8<---------------cut here---------------end--------------->8--- PATCH v2 below mentions that bootstrap.sh interferes with build. Is that better? Or were you thinking of a longer explanation? * * * --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-pasystray.patch Content-Transfer-Encoding: quoted-printable From=20025f5eea0fb0508d0306d3c476b3c47c4fc9273c Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 4 Feb 2020 20:31:49 -0500 Subject: [PATCH v2] gnu: Add pasystray. * gnu/packages/pulseaudio.scm (pasystray): New variable. =2D-- gnu/packages/pulseaudio.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm index 2bbe6c5bdd..0e37fe4f48 100644 =2D-- a/gnu/packages/pulseaudio.scm +++ b/gnu/packages/pulseaudio.scm @@ -42,6 +42,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages dbm) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) ; for libnotify #:use-module (gnu packages gtk) #:use-module (gnu packages libcanberra) #:use-module (gnu packages web) @@ -402,3 +403,42 @@ install one or more of the following packages alongsid= e pulseaudio-dlna: "pamixer is like amixer but for PulseAudio, allowing easy control of = the volume levels of the sinks (get, set, decrease, increase, toggle mute, etc= ).") (license l:gpl3+))) + +(define-public pasystray + (package + (name "pasystray") + (version "0.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/christophgysin/pasystray.git") + (commit (string-append name "-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xx1bm9kimgq11a359ikabdndqg5q54pn1d1dyyjnrj0s41168fk")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'bootstrap 'remove-bootstrap.sh + (lambda _ + (delete-file "bootstrap.sh") ; not useful in the context of G= uix, + ; and interferes with build + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) ; for aclocal + ("pkg-config" ,pkg-config))) + (inputs + `(("avahi" ,avahi) + ("gtk+" ,gtk+) + ("libnotify" ,libnotify) + ("libx11" ,libx11) + ("pulseaudio" ,pulseaudio))) + (home-page "https://github.com/christophgysin/pasystray") + (synopsis "PulseAudio controller for the system tray") + (description "@command{pasystray} enables control of various +PulseAudio server settings from the X11 system tray. See the project +README.md for a detailed list of features.") + (license l:lgpl2.1+))) =2D-=20 2.25.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl46HAUACgkQi0Sgzce5 VvJ8TA//RcrNJD61lZ41SCf5CIc7obeE5jkW88z/LbAsoXMVUg2Yy98BAJn5vsvE uOUHqxdQ0DTUHffoEVYdSyaiJ7MWUqjalDugd0b8U2b850b4nzCmbCk+01+v1SOD FsXMiBFPMywdlAgJ59JT5pZ0EHdWdidL/jYui/IPgD3CsKCsft1obtMlrw2fQUhc hX4zO0lrMimdT1+XN+5C6hrNh88OX/hIKqqfuL02r5SnFMdN0pydxsUW/x/SvBI2 DyIf7vujTWH9CQWqip3Izw/f0Z1hq9y7xb0JCEq7jXtWKx/8uJ4XSsPM7d2vrj0b B42qRokZ34bgoB1iNUezi5wN0wDC28BOPdaUEFc2meiZZqmeeZnXvMLATfalW6Q0 P6UARp81zxgHyzeWT2yAhF9/7xJ5ap5KZjM5jKjfx6ApeNdhDHZbxXfNAZQ3NKQ9 i6vKh+JN3a4F2nEFCdM4SRbJbKiXXDBIm+Nw5FlD/ROYXw4FNmEnIBVqv4ejGyDD 9Pj3pC6DWbyawiQMKByxZ/ZO8CuzlrUzfr4VlKdfA6XGhIrNSWANIui3L2lqEsMk SVUKmqqqRDNwMEaJvcsk+gwk9P/U0NHG+ladWEcRHH+/NILv0RKKm3JNObEVE2mn CL+ga24NP8OdyqQkM/UBzxx7Q7JcLEzbPUVIGd0omTCIe6JodUU= =AUCV -----END PGP SIGNATURE----- --==-=-=--