1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
3 ;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
5 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
6 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
7 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages mpd)
25 #:use-module (gnu packages)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix utils)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix build-system python)
32 #:use-module (gnu packages avahi)
33 #:use-module (gnu packages boost)
34 #:use-module (gnu packages icu4c)
35 #:use-module (gnu packages readline)
36 #:use-module (gnu packages compression)
37 #:use-module (gnu packages curl)
38 #:use-module (gnu packages documentation)
39 #:use-module (gnu packages glib)
40 #:use-module (gnu packages linux)
41 #:use-module (gnu packages mp3)
42 #:use-module (gnu packages ncurses)
43 #:use-module (gnu packages pkg-config)
44 #:use-module (gnu packages python)
45 #:use-module (gnu packages pulseaudio)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages video)
48 #:use-module (gnu packages xiph))
50 (define-public libmpdclient
57 (string-append "http://musicpd.org/download/libmpdclient/"
58 (car (string-split version #\.))
59 "/libmpdclient-" version ".tar.xz"))
62 "10pzs9z815a8hgbbbiliapyiw82bnplsccj5irgqjw5f5plcs22g"))))
63 (build-system gnu-build-system)
64 (native-inputs `(("doxygen" ,doxygen)))
65 (synopsis "Music Player Daemon client library")
66 (description "A stable, documented, asynchronous API library for
67 interfacing MPD in the C, C++ & Objective C languages.")
68 (home-page "http://www.musicpd.org/libs/libmpdclient/")
69 (license license:bsd-3)))
78 (string-append "http://musicpd.org/download/mpd/"
79 (version-major+minor version)
80 "/mpd-" version ".tar.xz"))
83 "07af1m2lgblyiq0gcs26zv8n22wrhrpmf49xsm338h1n87d6r1dw"))))
84 (build-system gnu-build-system)
86 ("alsa-lib" ,alsa-lib)
95 ("libid3tag" ,libid3tag)
97 ("libmpdclient" ,libmpdclient)
98 ("libsamplerate" ,libsamplerate)
99 ("libsndfile" ,libsndfile)
100 ("libvorbis" ,libvorbis)
102 ("pulseaudio" ,pulseaudio)
105 (native-inputs `(("pkg-config" ,pkg-config)))
106 ;; Missing optional inputs:
126 (synopsis "Music Player Daemon")
127 (description "Music Player Daemon (MPD) is a flexible, powerful,
128 server-side application for playing music. Through plugins and libraries it
129 can play a variety of sound files while being controlled by its network
131 (home-page "http://www.musicpd.org/")
132 (license license:gpl2)))
134 (define-public mpd-mpc
141 (string-append "http://www.musicpd.org/download/mpc/"
142 (car (string-split version #\.))
143 "/mpc-" version ".tar.xz"))
146 "0iy5mdffkk61255f62si7p8mhyhkib70zlr1i1iimj2xr037scx4"))))
147 (build-system gnu-build-system)
148 (inputs `(("libmpdclient" ,libmpdclient)))
149 (native-inputs `(("pkg-config" ,pkg-config)))
150 (synopsis "Music Player Daemon client")
151 (description "MPC is a minimalist command line interface to MPD, the music
153 (home-page "http://www.musicpd.org/clients/mpc/")
154 (license license:gpl2)))
163 (string-append "http://musicpd.org/download/ncmpc/"
164 (car (string-split version #\.))
165 "/ncmpc-" version ".tar.xz"))
168 "196f9s0qmc4srr10n4vk3amvqy5f52y9kvgwqpkfjsnhf75qlckf"))))
169 (build-system gnu-build-system)
170 (inputs `(("glib" ,glib)
171 ("libmpdclient" ,libmpdclient)
172 ("ncurses" ,ncurses)))
173 (native-inputs `(("pkg-config" ,pkg-config)))
174 (synopsis "Curses Music Player Daemon client")
175 (description "ncmpc is a fully featured MPD client, which runs in a
176 terminal using ncurses.")
177 (home-page "http://www.musicpd.org/clients/ncmpc/")
178 (license license:gpl2)))
180 (define-public ncmpcpp
187 (string-append "http://ncmpcpp.rybczak.net/stable/ncmpcpp-"
191 "0zg084m06y7dd8ccy6aq9hx8q7qi2s5kl0br5139hrmk40q68kvy"))))
192 (build-system gnu-build-system)
193 (inputs `(("libmpdclient" ,libmpdclient)
195 ("readline" ,readline)
200 `(("pkg-config" ,pkg-config)))
203 '("BOOST_LIB_SUFFIX=" "--with-taglib")))
204 (synopsis "Featureful ncurses based MPD client inspired by ncmpc")
205 (description "Ncmpcpp is an mpd client with a UI very similar to ncmpc,
206 but it provides new useful features such as support for regular expressions
207 for library searches, extended song format, items filtering, the ability to
208 sort playlists, and a local filesystem browser.")
209 (home-page "http://ncmpcpp.rybczak.net/")
210 (license license:gpl2+)))
212 (define-public mpdscribble
218 (uri (string-append "http://www.musicpd.org/download/mpdscribble/"
219 version "/mpdscribble-" version ".tar.gz"))
222 "0f0ybx380x2z2g1qvdndpvcrhkrgsfqckhz3ryydq2w3pl12v27z"))))
223 (build-system gnu-build-system)
224 (inputs `(("libmpdclient" ,libmpdclient)
227 (native-inputs `(("pkg-config" ,pkg-config)))
228 (synopsis "MPD client for track scrobbling")
229 (description "mpdscribble is a Music Player Daemon client which submits
230 information about tracks being played to a scrobbler, such as Libre.FM.")
231 ;; musicpd.org doesn't mention mpdscribble. It points users to this wiki
233 (home-page "http://mpd.wikia.com/wiki/Client:Mpdscribble")
234 (license license:gpl2+)))
236 (define-public python-mpd2
242 (uri (pypi-uri "python-mpd2" version))
245 "0laypd7h1j14b4vrmiayqlzdsh2j5hc3zv4l0fqvbrbw9y6763ii"))))
246 (build-system python-build-system)
249 (modify-phases %standard-phases
251 (lambda _ (zero? (system* "python" "mpd_test.py")))))))
252 (native-inputs `(("python-mock" ,python-mock)))
253 (home-page "https://github.com/Mic92/python-mpd2")
254 (synopsis "Python MPD client library")
255 (description "Python-mpd2 is a Python library which provides a client
256 interface for the Music Player Daemon.")
257 (license license:lgpl3+)
258 (properties `((python2-variant . ,(delay python2-mpd2))))))
260 (define-public python2-mpd2
261 (let ((mpd2 (package-with-python2
262 (strip-python2-variant python-mpd2))))
263 (package (inherit mpd2)
264 (native-inputs `(("python2-setuptools" ,python2-setuptools)
265 ,@(package-native-inputs mpd2))))))