Commit | Line | Data |
---|---|---|
37bfb448 | 1 | ;;; GNU Guix --- Functional package management for GNU |
3246cc91 | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
4373278e | 3 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
870b9ff9 | 4 | ;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il> |
de1b319d | 5 | ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> |
3cd959a4 | 6 | ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be> |
efc95e7b | 7 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
05bdb5e6 | 8 | ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> |
27a976ed | 9 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
d5e60a2a | 10 | ;;; Copyright © 2018 Pierre Langlois <pierre.langlois@gmx.com> |
e2332dec | 11 | ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> |
1a1bce6b | 12 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
c2cf286c | 13 | ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org> |
c7fe7f2c | 14 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
37bfb448 LC |
15 | ;;; |
16 | ;;; This file is part of GNU Guix. | |
17 | ;;; | |
18 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
19 | ;;; under the terms of the GNU General Public License as published by | |
20 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
21 | ;;; your option) any later version. | |
22 | ;;; | |
23 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
24 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | ;;; GNU General Public License for more details. | |
27 | ;;; | |
28 | ;;; You should have received a copy of the GNU General Public License | |
29 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
30 | ||
31 | (define-module (gnu packages pulseaudio) | |
32 | #:use-module (guix packages) | |
33 | #:use-module (guix download) | |
e2332dec | 34 | #:use-module (guix git-download) |
1a1bce6b | 35 | #:use-module (guix utils) |
b5b73a82 | 36 | #:use-module ((guix licenses) #:prefix l:) |
5cca1696 | 37 | #:use-module (guix build-system glib-or-gtk) |
37bfb448 | 38 | #:use-module (guix build-system gnu) |
c1baf5a9 | 39 | #:use-module (guix build-system meson) |
df71c88c | 40 | #:use-module (guix build-system python) |
b645425f | 41 | #:use-module (gnu packages) |
54ff0b7d | 42 | #:use-module (gnu packages algebra) |
d5e60a2a | 43 | #:use-module (gnu packages audio) |
38cf2ba0 | 44 | #:use-module (gnu packages autotools) |
37bfb448 | 45 | #:use-module (gnu packages avahi) |
b2a6a784 | 46 | #:use-module (gnu packages boost) |
54ff0b7d | 47 | #:use-module (gnu packages check) |
255d1bbe | 48 | #:use-module (gnu packages dbm) |
37bfb448 | 49 | #:use-module (gnu packages glib) |
de2871c9 | 50 | #:use-module (gnu packages gettext) |
d9e2f7b2 | 51 | #:use-module (gnu packages gnome) |
66fb2d23 LC |
52 | #:use-module (gnu packages gtk) |
53 | #:use-module (gnu packages libcanberra) | |
f6ad09ae | 54 | #:use-module (gnu packages web) |
54ff0b7d | 55 | #:use-module (gnu packages linux) |
37bfb448 | 56 | #:use-module (gnu packages m4) |
de2871c9 | 57 | #:use-module (gnu packages perl) |
e2332dec AG |
58 | #:use-module (gnu packages protobuf) |
59 | #:use-module (gnu packages python) | |
60 | #:use-module (gnu packages python-xyz) | |
61 | #:use-module (gnu packages python-web) | |
54ff0b7d | 62 | #:use-module (gnu packages pkg-config) |
531b63eb | 63 | #:use-module (gnu packages xiph) |
55e1475c | 64 | #:use-module (gnu packages xml) |
531b63eb | 65 | #:use-module (gnu packages xorg)) |
37bfb448 | 66 | |
0160458b | 67 | (define-public libsndfile |
37bfb448 LC |
68 | (package |
69 | (name "libsndfile") | |
3cd959a4 | 70 | (version "1.0.28") |
37bfb448 LC |
71 | (source (origin |
72 | (method url-fetch) | |
73 | (uri (string-append "http://www.mega-nerd.com/libsndfile/files/libsndfile-" | |
74 | version ".tar.gz")) | |
d1a91408 RW |
75 | (patches (search-patches "libsndfile-armhf-type-checks.patch" |
76 | "libsndfile-CVE-2017-8361-8363-8365.patch" | |
1cbdfede MW |
77 | "libsndfile-CVE-2017-8362.patch" |
78 | "libsndfile-CVE-2017-12562.patch")) | |
37bfb448 LC |
79 | (sha256 |
80 | (base32 | |
3cd959a4 | 81 | "1afzm7jx34jhqn32clc5xghyjglccam2728yxlx37yj2y0lkkwqz")))) |
37bfb448 LC |
82 | (build-system gnu-build-system) |
83 | (inputs | |
84 | `(("libvorbis" ,libvorbis) | |
85 | ("libogg" ,libogg) | |
d7e92b87 ML |
86 | ("flac" ,flac))) |
87 | (native-inputs | |
88 | `(("pkg-config" ,pkg-config))) | |
37bfb448 LC |
89 | (home-page "http://www.mega-nerd.com/libsndfile/") |
90 | (synopsis "Reading and writing files containing sampled sound") | |
91 | (description | |
92 | "Libsndfile is a C library for reading and writing files containing | |
93 | sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through | |
94 | one standard library interface. | |
95 | ||
96 | It was designed to handle both little-endian (such as WAV) and | |
97 | big-endian (such as AIFF) data, and to compile and run correctly on | |
98 | little-endian (such as Intel and DEC/Compaq Alpha) processor systems as well | |
99 | as big-endian processor systems such as Motorola 68k, Power PC, MIPS and | |
100 | SPARC. Hopefully the design of the library will also make it easy to extend | |
101 | for reading and writing new sound file formats.") | |
102 | (license l:gpl2+))) | |
103 | ||
0160458b | 104 | (define-public libsamplerate |
37bfb448 LC |
105 | (package |
106 | (name "libsamplerate") ; aka. Secret Rabbit Code (SRC) | |
e1f68c96 | 107 | (version "0.1.9") |
37bfb448 LC |
108 | (source (origin |
109 | (method url-fetch) | |
110 | (uri (string-append "http://www.mega-nerd.com/SRC/libsamplerate-" | |
111 | version ".tar.gz")) | |
112 | (sha256 | |
113 | (base32 | |
e1f68c96 | 114 | "1ha46i0nbibq0pl0pjwcqiyny4hj8lp1bnl4dpxm64zjw9lb2zha")))) |
37bfb448 | 115 | (build-system gnu-build-system) |
d7e92b87 | 116 | (native-inputs |
1a1bce6b MO |
117 | `(("pkg-config" ,pkg-config) |
118 | ("automake" ,automake))) ;For up to date 'config.guess' and 'config.sub'. | |
37bfb448 LC |
119 | (propagated-inputs |
120 | `(("libsndfile" ,libsndfile) | |
121 | ("fftw" ,fftw))) | |
1a1bce6b MO |
122 | (arguments |
123 | `(#:phases | |
124 | (modify-phases %standard-phases | |
125 | (add-after 'unpack 'fix-configure | |
126 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | |
127 | ;; Replace outdated config.sub and config.guess: | |
128 | (with-directory-excursion "Cfg" | |
129 | (for-each (lambda (file) | |
130 | (install-file (string-append | |
131 | (assoc-ref | |
132 | (or native-inputs inputs) "automake") | |
133 | "/share/automake-" | |
134 | ,(version-major+minor | |
135 | (package-version automake)) | |
136 | "/" file) ".")) | |
137 | '("config.sub" "config.guess"))) | |
138 | #t))))) | |
37bfb448 LC |
139 | (home-page "http://www.mega-nerd.com/SRC/index.html") |
140 | (synopsis "Audio sample rate conversion library") | |
141 | (description | |
142 | "Secret Rabbit Code (aka. libsamplerate) is a Sample Rate Converter for | |
143 | audio. One example of where such a thing would be useful is converting audio | |
144 | from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT | |
145 | players. | |
146 | ||
147 | SRC is capable of arbitrary and time varying conversions; from downsampling by | |
148 | a factor of 256 to upsampling by the same factor. Arbitrary in this case means | |
149 | that the ratio of input and output sample rates can be an irrational | |
150 | number. The conversion ratio can also vary with time for speeding up and | |
151 | slowing down effects. | |
152 | ||
153 | SRC provides a small set of converters to allow quality to be traded off | |
154 | against computation cost. The current best converter provides a | |
155 | signal-to-noise ratio of 145dB with -3dB passband extending from DC to 96% of | |
156 | the theoretical best bandwidth for a given pair of input and output sample | |
e881752c | 157 | rates.") |
0802f3a0 | 158 | (license l:bsd-2))) |
37bfb448 | 159 | |
0160458b | 160 | (define-public pulseaudio |
37bfb448 LC |
161 | (package |
162 | (name "pulseaudio") | |
4442d4dc | 163 | (version "13.0") |
37bfb448 LC |
164 | (source (origin |
165 | (method url-fetch) | |
166 | (uri (string-append | |
9dd61217 EF |
167 | "https://freedesktop.org/software/pulseaudio/releases/" |
168 | name "-" version ".tar.xz")) | |
37bfb448 LC |
169 | (sha256 |
170 | (base32 | |
4442d4dc | 171 | "0mw0ybrqj7hvf8lqs5gjzip464hfnixw453lr0mqzlng3b5266wn")) |
3f9d63df LC |
172 | (modules '((guix build utils))) |
173 | (snippet | |
174 | ;; Disable console-kit support by default since it's deprecated | |
175 | ;; anyway. | |
6cbee49d MW |
176 | '(begin |
177 | (substitute* "src/daemon/default.pa.in" | |
178 | (("load-module module-console-kit" all) | |
179 | (string-append "#" all "\n"))) | |
180 | #t)) | |
fc1adab1 AK |
181 | (patches (search-patches |
182 | "pulseaudio-fix-mult-test.patch" | |
183 | "pulseaudio-longer-test-timeout.patch")))) | |
37bfb448 LC |
184 | (build-system gnu-build-system) |
185 | (arguments | |
5a74d239 LC |
186 | `(#:configure-flags (list "--localstatedir=/var" ;"--sysconfdir=/etc" |
187 | "--disable-oss-output" | |
de1b319d | 188 | "--enable-bluez5" |
5a74d239 LC |
189 | (string-append "--with-udev-rules-dir=" |
190 | (assoc-ref %outputs "out") | |
191 | "/lib/udev/rules.d")) | |
277cf3dc MB |
192 | #:phases (modify-phases %standard-phases |
193 | (add-before 'check 'pre-check | |
194 | (lambda _ | |
195 | ;; 'tests/lock-autospawn-test.c' wants to create a file | |
196 | ;; under ~/.config/pulse. | |
197 | (setenv "HOME" (getcwd)) | |
198 | ;; 'thread-test' needs more time on hydra and on slower | |
199 | ;; machines, so we set the default timeout to 120 seconds. | |
200 | (setenv "CK_DEFAULT_TIMEOUT" "120") | |
201 | #t))))) | |
37bfb448 LC |
202 | (inputs |
203 | ;; TODO: Add optional inputs (GTK+?). | |
de1b319d RW |
204 | `(("alsa-lib" ,alsa-lib) |
205 | ("bluez" ,bluez) | |
206 | ("sbc" ,sbc) | |
7136f3e6 | 207 | ("speexdsp" ,speexdsp) |
37bfb448 | 208 | ("libsndfile" ,libsndfile) |
d5e60a2a | 209 | ("jack" ,jack-1) ; For routing the output to jack. |
37bfb448 LC |
210 | ("dbus" ,dbus) |
211 | ("glib" ,glib) | |
3246cc91 | 212 | ("libltdl" ,libltdl) |
7569c5cb | 213 | ("fftwf" ,fftwf) |
37bfb448 | 214 | ("avahi" ,avahi) |
531b63eb DNB |
215 | |
216 | ;; For the optional X11 modules. | |
217 | ("libice" ,libice) | |
218 | ("libsm" ,libsm) | |
219 | ("libxcb" ,libxcb) | |
220 | ("libxtst" ,libxtst) | |
221 | ||
7136f3e6 | 222 | ("eudev" ,eudev))) ;for the detection of hardware audio devices |
d7e92b87 | 223 | (native-inputs |
7136f3e6 | 224 | `(("check" ,check) |
de2871c9 | 225 | ("gettext" ,gettext-minimal) |
7136f3e6 | 226 | ("glib:bin" ,glib "bin") |
7136f3e6 | 227 | ("m4" ,m4) |
de2871c9 MB |
228 | ("perl" ,perl) |
229 | ("perl-xml-parser" ,perl-xml-parser) | |
7136f3e6 | 230 | ("pkg-config" ,pkg-config))) |
37bfb448 LC |
231 | (propagated-inputs |
232 | ;; 'libpulse*.la' contain `-lgdbm' and `-lcap', so propagate them. | |
09767fb5 | 233 | `(("libcap" ,libcap) |
37bfb448 LC |
234 | ("gdbm" ,gdbm))) |
235 | (home-page "http://www.pulseaudio.org/") | |
236 | (synopsis "Sound server") | |
237 | (description | |
e881752c AK |
238 | "PulseAudio is a sound server. It is basically a proxy for your sound |
239 | applications. It allows you to do advanced operations on your sound data as | |
240 | it passes between your application and your hardware. Things like | |
241 | transferring the audio to a different machine, changing the sample format or | |
242 | channel count and mixing several sounds into one are easily achieved using a | |
243 | sound server.") | |
37bfb448 LC |
244 | |
245 | ;; PulseAudio is LGPLv2+, but some of the optional dependencies (GNU dbm, | |
246 | ;; FFTW, etc.) are GPL'd, so the result is effectively GPLv2+. See | |
247 | ;; 'LICENSE' for details. | |
248 | (license l:gpl2+))) | |
66fb2d23 LC |
249 | |
250 | (define-public pavucontrol | |
251 | (package | |
252 | (name "pavucontrol") | |
c7fe7f2c | 253 | (version "4.0") |
66fb2d23 LC |
254 | (source (origin |
255 | (method url-fetch) | |
256 | (uri (string-append | |
5cc3096c | 257 | "https://freedesktop.org/software/pulseaudio/pavucontrol/pavucontrol-" |
66fb2d23 LC |
258 | version |
259 | ".tar.xz")) | |
260 | (sha256 | |
261 | (base32 | |
c7fe7f2c | 262 | "1qhlkl3g8d7h72xjskii3g1l7la2cavwp69909pzmbi2jyn5pi4g")))) |
5cca1696 | 263 | (build-system glib-or-gtk-build-system) |
66fb2d23 | 264 | (inputs |
5cca1696 | 265 | `(("adwaita-icon-theme" ,adwaita-icon-theme) ;hard-coded theme |
66fb2d23 | 266 | ("gtkmm" ,gtkmm) |
5cca1696 | 267 | ("libcanberra" ,libcanberra) |
c4c4cc05 JD |
268 | ("pulseaudio" ,pulseaudio))) |
269 | (native-inputs | |
270 | `(("intltool" ,intltool) | |
66fb2d23 | 271 | ("pkg-config" ,pkg-config))) |
57e7d748 | 272 | (home-page "https://www.freedesktop.org/software/pulseaudio/pavucontrol/") |
66fb2d23 LC |
273 | (synopsis "PulseAudio volume control") |
274 | (description | |
275 | "PulseAudio Volume Control (pavucontrol) provides a GTK+ | |
276 | graphical user interface to connect to a PulseAudio server and | |
277 | easily control the volume of all clients, sinks, etc.") | |
278 | (license l:gpl2+))) | |
05bdb5e6 SR |
279 | |
280 | (define-public ponymix | |
281 | (package | |
282 | (name "ponymix") | |
283 | (version "5") | |
284 | (source (origin | |
870b9ff9 EF |
285 | (method git-fetch) |
286 | (uri (git-reference | |
287 | (url "https://github.com/falconindy/ponymix/") | |
288 | (commit version))) | |
289 | (file-name (git-file-name name version)) | |
05bdb5e6 SR |
290 | (sha256 |
291 | (base32 | |
870b9ff9 | 292 | "08yp7fprmzm6px5yx2rvzri0l60bra5h59l26pn0k071a37ks1rb")))) |
05bdb5e6 SR |
293 | (build-system gnu-build-system) |
294 | (arguments | |
295 | `(#:tests? #f ; There is no test suite. | |
296 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
297 | (list (string-append "DESTDIR=" out))) | |
298 | #:phases | |
299 | (modify-phases %standard-phases | |
300 | (add-after 'unpack 'patch-paths | |
301 | (lambda _ | |
302 | (substitute* "Makefile" | |
303 | (("/usr") "")))) | |
304 | (delete 'configure)))) ; There's no configure phase. | |
305 | (inputs | |
306 | `(("pulseaudio" ,pulseaudio))) | |
307 | (native-inputs | |
308 | `(("pkg-config" ,pkg-config))) | |
309 | (home-page "https://github.com/falconindy/ponymix") | |
310 | (synopsis "Console-based PulseAudio mixer") | |
311 | (description "Ponymix is a PulseAudio mixer and volume controller with a | |
312 | command-line interface. In addition, it is possible to use named sources and | |
313 | sinks.") | |
314 | (license l:expat))) | |
df71c88c LF |
315 | |
316 | (define-public pulsemixer | |
317 | (package | |
318 | (name "pulsemixer") | |
3cc8b4fa | 319 | (version "1.5.1") |
df71c88c | 320 | (source (origin |
fa6abb01 EF |
321 | (method git-fetch) |
322 | (uri (git-reference | |
323 | (url "https://github.com/GeorgeFilipkin/pulsemixer") | |
324 | (commit version))) | |
325 | (file-name (git-file-name name version)) | |
df71c88c LF |
326 | (sha256 |
327 | (base32 | |
3cc8b4fa | 328 | "1jagx9zmz5pfsld8y2rj2kqg6ww9f6vqiawfy3vhqc49x3xx92p4")))) |
df71c88c LF |
329 | (build-system python-build-system) |
330 | (arguments | |
331 | `(#:phases | |
332 | (modify-phases %standard-phases | |
333 | (add-after 'unpack 'patch-path | |
334 | (lambda* (#:key inputs #:allow-other-keys) | |
335 | (let ((pulse (assoc-ref inputs "pulseaudio"))) | |
336 | (substitute* "pulsemixer" | |
337 | (("libpulse.so.0") | |
338 | (string-append pulse "/lib/libpulse.so.0"))) | |
339 | #t)))))) | |
340 | (inputs | |
341 | `(("pulseaudio" ,pulseaudio))) | |
342 | (home-page "https://github.com/GeorgeFilipkin/pulsemixer/") | |
343 | (synopsis "Command-line and curses mixer for PulseAudio") | |
344 | (description "Pulsemixer is a PulseAudio mixer with command-line and | |
345 | curses-style interfaces.") | |
346 | (license l:expat))) | |
e2332dec AG |
347 | |
348 | (define-public pulseaudio-dlna | |
349 | ;; The last release was in 2016; use a more recent commit. | |
350 | (let ((commit "4472928dd23f274193f14289f59daec411023ab0") | |
351 | (revision "1")) | |
352 | (package | |
353 | (name "pulseaudio-dlna") | |
354 | (version (git-version "0.5.2" revision commit)) | |
355 | (source | |
356 | (origin | |
357 | (method git-fetch) | |
358 | (uri (git-reference | |
b0e7b699 | 359 | (url "https://github.com/masmu/pulseaudio-dlna") |
e2332dec AG |
360 | (commit commit))) |
361 | (file-name (git-file-name name version)) | |
362 | (sha256 | |
363 | (base32 | |
364 | "1dfn7036vrq49kxv4an7rayypnm5dlawsf02pfsldw877hzdamqk")))) | |
365 | (build-system python-build-system) | |
366 | (arguments `(#:python ,python-2)) | |
367 | (inputs | |
368 | `(("python2-chardet" ,python2-chardet) | |
369 | ("python2-dbus" ,python2-dbus) | |
370 | ("python2-docopt" ,python2-docopt) | |
371 | ("python2-futures" ,python2-futures) | |
372 | ("python2-pygobject" ,python2-pygobject) | |
373 | ("python2-lxml" ,python2-lxml) | |
374 | ("python2-netifaces" ,python2-netifaces) | |
375 | ("python2-notify2" ,python2-notify2) | |
376 | ("python2-protobuf" ,python2-protobuf) | |
377 | ("python2-psutil" ,python2-psutil) | |
378 | ("python2-requests" ,python2-requests) | |
379 | ("python2-pyroute2" ,python2-pyroute2) | |
380 | ("python2-setproctitle" ,python2-setproctitle) | |
381 | ("python2-zeroconf" ,python2-zeroconf))) | |
382 | (home-page "https://github.com/masmu/pulseaudio-dlna") | |
383 | (synopsis "Stream audio to DLNA/UPnP and Chromecast devices") | |
384 | (description "This lightweight streaming server brings DLNA/UPnP and | |
385 | Chromecast support to PulseAudio. It can stream your current PulseAudio | |
386 | playback to different UPnP devices (UPnP Media Renderers, including Sonos | |
387 | devices and some Smart TVs) or Chromecasts in your network. You should also | |
388 | install one or more of the following packages alongside pulseaudio-dlna: | |
389 | ||
390 | @itemize | |
391 | @item ffmpeg - transcoding support for multiple codecs | |
392 | @item flac - FLAC transcoding support | |
393 | @item lame - MP3 transcoding support | |
394 | @item opus-tools - Opus transcoding support | |
395 | @item sox - WAV transcoding support | |
396 | @item vorbis-tools - Vorbis transcoding support | |
397 | @end itemize") | |
398 | (license l:gpl3+)))) | |
b2a6a784 AB |
399 | |
400 | (define-public pamixer | |
401 | (package | |
402 | (name "pamixer") | |
403 | (version "1.4") | |
404 | (source | |
405 | (origin | |
406 | (method git-fetch) | |
407 | (uri (git-reference | |
b0e7b699 | 408 | (url "https://github.com/cdemoulins/pamixer") |
b2a6a784 AB |
409 | (commit version))) |
410 | (file-name (git-file-name name version)) | |
411 | (sha256 | |
412 | (base32 "1i14550n8paijwwnhksv5izgfqm3s5q2773bdfp6vyqybkll55f7")))) | |
413 | (build-system gnu-build-system) | |
414 | (arguments | |
415 | `(#:tests? #f ; There is no test suite. | |
416 | #:make-flags | |
417 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
418 | #:phases | |
419 | (modify-phases %standard-phases | |
420 | (delete 'configure) ; There's no configure phase. | |
421 | (add-before 'install 'mkdir-bin | |
422 | (lambda _ | |
423 | (mkdir-p (string-append (assoc-ref %outputs "out") "/bin")) | |
424 | #t))))) | |
425 | (inputs | |
426 | `(("boost" ,boost) | |
427 | ("pulseaudio" ,pulseaudio))) | |
428 | (home-page "https://github.com/cdemoulins/pamixer") | |
429 | (synopsis "PulseAudio command line mixer") | |
430 | (description | |
431 | "pamixer is like amixer but for PulseAudio, allowing easy control of the | |
432 | volume levels of the sinks (get, set, decrease, increase, toggle mute, etc).") | |
433 | (license l:gpl3+))) | |
d9e2f7b2 AB |
434 | |
435 | (define-public pasystray | |
436 | (package | |
437 | (name "pasystray") | |
438 | (version "0.7.1") | |
439 | (source | |
440 | (origin | |
441 | (method git-fetch) | |
442 | (uri (git-reference | |
b0e7b699 | 443 | (url "https://github.com/christophgysin/pasystray") |
d9e2f7b2 AB |
444 | (commit (string-append name "-" version)))) |
445 | (file-name (git-file-name name version)) | |
446 | (sha256 | |
447 | (base32 "0xx1bm9kimgq11a359ikabdndqg5q54pn1d1dyyjnrj0s41168fk")))) | |
448 | (build-system gnu-build-system) | |
449 | (arguments | |
450 | `(#:phases | |
451 | (modify-phases %standard-phases | |
452 | (add-before 'bootstrap 'remove-bootstrap.sh | |
453 | (lambda _ | |
454 | ;; Interferes with the bootstrap phase. | |
455 | (delete-file "bootstrap.sh") | |
456 | #t))))) | |
457 | (native-inputs | |
458 | `(("autoconf" ,autoconf) | |
459 | ("automake" ,automake) | |
460 | ("pkg-config" ,pkg-config))) | |
461 | (inputs | |
462 | `(("avahi" ,avahi) | |
463 | ("gtk+" ,gtk+) | |
464 | ("libnotify" ,libnotify) | |
465 | ("libx11" ,libx11) | |
466 | ("pulseaudio" ,pulseaudio))) | |
467 | (home-page "https://github.com/christophgysin/pasystray") | |
468 | (synopsis "PulseAudio controller for the system tray") | |
469 | (description "@command{pasystray} enables control of various | |
470 | PulseAudio server settings from the X11 system tray. See the project | |
471 | README.md for a detailed list of features.") | |
472 | (license l:lgpl2.1+))) | |
c1baf5a9 MR |
473 | |
474 | (define-public paprefs | |
475 | (package | |
476 | (name "paprefs") | |
477 | (version "1.1") | |
478 | (source | |
479 | (origin | |
480 | (method url-fetch) | |
481 | (uri (string-append "https://www.freedesktop.org/software/pulseaudio/" | |
482 | name "/" name "-" version ".tar.xz")) | |
483 | (sha256 | |
484 | (base32 | |
485 | "189z5p20hk0xv9vwvym293503j4pwl03xqk9hl7cl6dwgv0l7wkf")))) | |
486 | (build-system meson-build-system) | |
487 | (native-inputs | |
488 | `(("gettext" ,gettext-minimal) | |
489 | ("pkg-config" ,pkg-config))) | |
490 | (inputs | |
491 | `(("gtkmm" ,gtkmm) | |
492 | ("pulseaudio" ,pulseaudio))) | |
493 | (home-page "https://freedesktop.org/software/pulseaudio/paprefs/") | |
494 | (synopsis "Simple GTK based configuration dialog for the PulseAudio sound | |
495 | server") | |
496 | (description "@command{paprefs} is a simple GTK based configuration | |
497 | dialog for the PulseAudio sound server. Note that this program can | |
498 | only configure local servers, and requires that a special module | |
499 | module-gsettings is loaded in the sound server.") | |
500 | (license l:gpl2))) |