Commit | Line | Data |
---|---|---|
1b6826d3 | 1 | ;;; GNU Guix --- Functional package management for GNU |
658212eb | 2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
a763ce7d | 3 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
e8069d01 | 4 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
aa0edd3f | 5 | ;;; Copyright © 2016 Al McElrath <hello@yrns.org> |
b7367762 | 6 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
3f7a182d | 7 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
21f05134 | 8 | ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org> |
6d3ef286 | 9 | ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net> |
23319ed6 | 10 | ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com> |
1b6826d3 RW |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages music) | |
28 | #:use-module (guix utils) | |
29 | #:use-module (guix packages) | |
30 | #:use-module (guix download) | |
8e80244a | 31 | #:use-module (guix git-download) |
1b6826d3 RW |
32 | #:use-module ((guix licenses) #:prefix license:) |
33 | #:use-module (guix build-system gnu) | |
8b9ec354 | 34 | #:use-module (guix build-system cmake) |
821664f1 | 35 | #:use-module (guix build-system python) |
8e80244a | 36 | #:use-module (guix build-system waf) |
1b6826d3 | 37 | #:use-module (gnu packages) |
ddfddb0c | 38 | #:use-module (gnu packages algebra) |
c267cc15 | 39 | #:use-module (gnu packages audio) |
2d0fd07b | 40 | #:use-module (gnu packages autotools) |
b7367762 | 41 | #:use-module (gnu packages backup) |
8b9ec354 | 42 | #:use-module (gnu packages base) ;libbdf |
1b6826d3 | 43 | #:use-module (gnu packages bison) |
b7367762 | 44 | #:use-module (gnu packages boost) |
e8069d01 | 45 | #:use-module (gnu packages cdrom) |
8b9ec354 RW |
46 | #:use-module (gnu packages code) |
47 | #:use-module (gnu packages check) | |
48 | #:use-module (gnu packages compression) | |
aa0edd3f | 49 | #:use-module (gnu packages curl) |
13416a10 | 50 | #:use-module (gnu packages cyrus-sasl) |
1b6826d3 | 51 | #:use-module (gnu packages docbook) |
99828fa7 | 52 | #:use-module (gnu packages documentation) |
13416a10 | 53 | #:use-module (gnu packages file) |
1b6826d3 | 54 | #:use-module (gnu packages flex) |
8e80244a | 55 | #:use-module (gnu packages fltk) |
1b6826d3 RW |
56 | #:use-module (gnu packages fonts) |
57 | #:use-module (gnu packages fontutils) | |
3bf429af | 58 | #:use-module (gnu packages freedesktop) |
6260d1a8 | 59 | #:use-module (gnu packages gcc) |
aa0edd3f | 60 | #:use-module (gnu packages gnupg) |
1b6826d3 RW |
61 | #:use-module (gnu packages gettext) |
62 | #:use-module (gnu packages ghostscript) | |
ec8da0e2 | 63 | #:use-module (gnu packages gl) |
8e80244a | 64 | #:use-module (gnu packages glib) |
c267cc15 | 65 | #:use-module (gnu packages gnome) |
770305f4 | 66 | #:use-module (gnu packages graphics) |
1b6826d3 RW |
67 | #:use-module (gnu packages gtk) |
68 | #:use-module (gnu packages guile) | |
c267cc15 | 69 | #:use-module (gnu packages image) |
1b6826d3 | 70 | #:use-module (gnu packages imagemagick) |
6260d1a8 | 71 | #:use-module (gnu packages java) |
c267cc15 RW |
72 | #:use-module (gnu packages linux) ; for alsa-utils |
73 | #:use-module (gnu packages man) | |
74 | #:use-module (gnu packages mp3) | |
3bf429af | 75 | #:use-module (gnu packages mpd) |
e8069d01 | 76 | #:use-module (gnu packages ncurses) |
1b6826d3 | 77 | #:use-module (gnu packages netpbm) |
821664f1 | 78 | #:use-module (gnu packages pdf) |
1b6826d3 RW |
79 | #:use-module (gnu packages perl) |
80 | #:use-module (gnu packages pkg-config) | |
d231bb35 | 81 | #:use-module (gnu packages pulseaudio) ;libsndfile |
1b6826d3 | 82 | #:use-module (gnu packages python) |
8b9ec354 | 83 | #:use-module (gnu packages qt) |
d231bb35 | 84 | #:use-module (gnu packages rdf) |
c493679f | 85 | #:use-module (gnu packages readline) |
1b6826d3 | 86 | #:use-module (gnu packages rsync) |
21d18113 | 87 | #:use-module (gnu packages sdl) |
2d0fd07b | 88 | #:use-module (gnu packages tcl) |
1b6826d3 | 89 | #:use-module (gnu packages texinfo) |
8f9ac901 | 90 | #:use-module (gnu packages tex) |
13416a10 | 91 | #:use-module (gnu packages tls) |
e8069d01 | 92 | #:use-module (gnu packages video) |
8b9ec354 | 93 | #:use-module (gnu packages web) |
c30a66de | 94 | #:use-module (gnu packages wxwidgets) |
c267cc15 | 95 | #:use-module (gnu packages xml) |
ddfddb0c | 96 | #:use-module (gnu packages xorg) |
c267cc15 | 97 | #:use-module (gnu packages xiph) |
2d0fd07b RW |
98 | #:use-module (gnu packages zip) |
99 | #:use-module ((srfi srfi-1) #:select (last))) | |
1b6826d3 | 100 | |
c30a66de RW |
101 | (define-public aria-maestosa |
102 | (package | |
103 | (name "aria-maestosa") | |
104 | (version "1.4.11") | |
105 | (source (origin | |
106 | (method url-fetch) | |
107 | (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/" | |
108 | version "/AriaSrc-" version ".tar.bz2")) | |
109 | (sha256 | |
110 | (base32 | |
111 | "0gf9z96z83jiabxhpl856j15vl9flfgs6x1r0r6hc7g2xvwag0vy")))) | |
112 | (build-system gnu-build-system) | |
113 | (arguments | |
114 | `(#:tests? #f ;no tests | |
115 | #:phases | |
116 | ;; TODO: Add scons-build-system and use it here. | |
117 | (modify-phases %standard-phases | |
118 | (delete 'configure) | |
119 | (add-after 'unpack 'scons-propagate-environment | |
120 | (lambda _ | |
121 | ;; By design, SCons does not, by default, propagate | |
122 | ;; environment variables to subprocesses. See: | |
123 | ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969> | |
124 | ;; Here, we modify the SConstruct file to arrange for | |
125 | ;; environment variables to be propagated. | |
126 | (substitute* "SConstruct" | |
127 | (("env = Environment\\(\\)") | |
128 | "env = Environment(ENV=os.environ)") | |
129 | ;; Scons errors out when copying subdirectories from Resources, | |
130 | ;; so we move them instead. | |
131 | (("Copy") "Move") | |
132 | ;; We move the "score" and "Documentation" directories at once, | |
133 | ;; so we have to ignore files contained therein. | |
134 | (("if \".svn\" in file" line) | |
135 | (string-append line | |
136 | " or \"score/\" in file" | |
137 | " or \"Documentation/\" in file"))) | |
138 | #t)) | |
139 | (replace 'build (lambda _ (zero? (system* "scons")))) | |
140 | (replace 'install | |
141 | (lambda* (#:key outputs #:allow-other-keys) | |
142 | (let ((out (assoc-ref outputs "out"))) | |
143 | (and | |
144 | (zero? (system* "scons" | |
145 | (string-append "prefix=" out) | |
146 | "install")) | |
147 | ;; Fix directory permissions | |
148 | (begin | |
149 | (chmod (string-append out "/share/Aria/Documentation") #o555) | |
150 | (chmod (string-append out "/share/Aria/score") #o555) | |
151 | #t)))))))) | |
152 | (inputs | |
153 | `(("wxwidgets" ,wxwidgets) | |
154 | ("glib" ,glib) | |
155 | ("alsa-lib" ,alsa-lib))) | |
156 | (native-inputs | |
157 | `(("scons" ,scons) | |
158 | ("pkg-config" ,pkg-config))) | |
159 | (home-page "http://ariamaestosa.sourceforge.net/") | |
160 | (synopsis "MIDI sequencer and editor") | |
161 | (description | |
162 | "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit | |
163 | and play MIDI files with a few clicks in a user-friendly interface offering | |
164 | score, keyboard, guitar, drum and controller views.") | |
165 | (license license:gpl3+))) | |
166 | ||
e8069d01 PW |
167 | (define-public cmus |
168 | (package | |
169 | (name "cmus") | |
170 | (version "2.7.1") | |
171 | (source (origin | |
172 | (method url-fetch) | |
173 | (uri (string-append | |
174 | "https://github.com/" name "/" name "/archive/v" | |
175 | version ".tar.gz")) | |
566fc7fa | 176 | (file-name (string-append name "-" version ".tar.gz")) |
e8069d01 PW |
177 | (sha256 |
178 | (base32 | |
179 | "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1")))) | |
180 | (build-system gnu-build-system) | |
181 | (arguments | |
182 | `(#:tests? #f ; cmus does not include tests | |
183 | #:phases | |
184 | (modify-phases %standard-phases | |
185 | (replace | |
186 | 'configure | |
187 | (lambda* (#:key outputs #:allow-other-keys) | |
188 | (let ((out (assoc-ref outputs "out"))) | |
189 | ||
190 | ;; It's an idiosyncratic configure script that doesn't | |
191 | ;; understand --prefix=..; it wants prefix=.. instead. | |
192 | (zero? | |
193 | (system* "./configure" | |
194 | (string-append "prefix=" out))))))))) | |
195 | ;; TODO: cmus optionally supports the following formats, which haven't yet | |
196 | ;; been added to Guix: | |
197 | ;; | |
198 | ;; - Roar, libroar | |
199 | ;; | |
200 | ;; - DISCID_LIBS, apparently different from cd-discid which is included in | |
201 | ;; Guix. See <http://sourceforge.net/projects/discid/> | |
202 | (native-inputs | |
203 | `(("pkg-config" ,pkg-config))) | |
204 | (inputs | |
205 | `(("alsa-lib" ,alsa-lib) | |
206 | ("ao" ,ao) | |
207 | ("ffmpeg" ,ffmpeg) | |
208 | ("flac" ,flac) | |
209 | ("jack" ,jack-1) | |
210 | ("libcddb" ,libcddb) | |
211 | ("libcdio-paranoia" ,libcdio-paranoia) | |
212 | ("libcue" ,libcue) | |
213 | ("libmad" ,libmad) | |
214 | ("libmodplug" ,libmodplug) | |
215 | ("libmpcdec" ,libmpcdec) | |
216 | ("libsamplerate" ,libsamplerate) | |
217 | ("libvorbis" ,libvorbis) | |
218 | ("ncurses" ,ncurses) | |
219 | ("opusfile" ,opusfile) | |
220 | ("pulseaudio" ,pulseaudio) | |
221 | ("wavpack" ,wavpack))) | |
222 | (home-page "https://cmus.github.io/") | |
223 | (synopsis "Small console music player") | |
224 | (description "Cmus is a small and fast console music player. It supports | |
225 | many input formats and provides a customisable Vi-style user interface.") | |
226 | (license license:gpl2+))) | |
227 | ||
d231bb35 RW |
228 | (define-public hydrogen |
229 | (package | |
230 | (name "hydrogen") | |
b7367762 | 231 | (version "0.9.6.1") |
d231bb35 RW |
232 | (source (origin |
233 | (method url-fetch) | |
234 | (uri (string-append | |
b7367762 EF |
235 | "https://github.com/hydrogen-music/hydrogen/archive/" |
236 | version ".tar.gz")) | |
d231bb35 RW |
237 | (sha256 |
238 | (base32 | |
b7367762 EF |
239 | "0vxnaqfmcv7hhk0cj67imdcqngspnck7f0wfmvhfgfqa7x1xznll")))) |
240 | (build-system cmake-build-system) | |
d231bb35 | 241 | (arguments |
b7367762 | 242 | `(#:test-target "tests")) |
d231bb35 | 243 | (native-inputs |
b7367762 | 244 | `(("cppunit" ,cppunit) |
d231bb35 RW |
245 | ("pkg-config" ,pkg-config))) |
246 | (inputs | |
b7367762 | 247 | `(("alsa-lib" ,alsa-lib) |
d231bb35 | 248 | ("jack" ,jack-1) |
b7367762 | 249 | ;; ("ladspa" ,ladspa) ; cannot find during configure |
d231bb35 | 250 | ("lash" ,lash) |
b7367762 EF |
251 | ("libarchive" ,libarchive) |
252 | ("libsndfile" ,libsndfile) | |
253 | ("libtar" ,libtar) | |
254 | ("lrdf" ,lrdf) | |
d231bb35 | 255 | ("qt" ,qt-4) |
b7367762 | 256 | ("zlib" ,zlib))) |
d231bb35 RW |
257 | (home-page "http://www.hydrogen-music.org") |
258 | (synopsis "Drum machine") | |
259 | (description | |
260 | "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to | |
261 | enable professional yet simple and intuitive pattern-based drum programming.") | |
262 | (license license:gpl2+))) | |
263 | ||
8c454dcd RW |
264 | (define-public klick |
265 | (package | |
266 | (name "klick") | |
267 | (version "0.12.2") | |
268 | (source (origin | |
269 | (method url-fetch) | |
270 | (uri (string-append "http://das.nasophon.de/download/klick-" | |
271 | version ".tar.gz")) | |
272 | (sha256 | |
273 | (base32 | |
274 | "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j")))) | |
275 | (build-system gnu-build-system) | |
276 | (arguments | |
277 | `(#:tests? #f ;no "check" target | |
278 | #:phases | |
279 | ;; TODO: Add scons-build-system and use it here. | |
280 | (modify-phases %standard-phases | |
281 | (delete 'configure) | |
282 | (replace 'build | |
283 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
284 | (let ((out (assoc-ref outputs "out"))) | |
285 | (mkdir-p out) | |
286 | (zero? (system* "scons" (string-append "PREFIX=" out)))))) | |
287 | (replace 'install (lambda _ (zero? (system* "scons" "install"))))))) | |
288 | (inputs | |
289 | `(("boost" ,boost) | |
290 | ("jack" ,jack-1) | |
291 | ("libsndfile" ,libsndfile) | |
292 | ("libsamplerate" ,libsamplerate) | |
293 | ("liblo" ,liblo) | |
294 | ("rubberband" ,rubberband))) | |
295 | (native-inputs | |
296 | `(("scons" ,scons) | |
297 | ("python" ,python-2) | |
298 | ("pkg-config" ,pkg-config))) | |
299 | (home-page "http://das.nasophon.de/klick/") | |
300 | (synopsis "Metronome for JACK") | |
301 | (description | |
302 | "klick is an advanced command-line based metronome for JACK. It allows | |
303 | you to define complex tempo maps for entire songs or performances.") | |
304 | (license license:gpl2+))) | |
305 | ||
048bfba1 RW |
306 | (define-public gtklick |
307 | (package | |
308 | (name "gtklick") | |
309 | (version "0.6.4") | |
310 | (source (origin | |
311 | (method url-fetch) | |
312 | (uri (string-append "http://das.nasophon.de/download/gtklick-" | |
313 | version ".tar.gz")) | |
314 | (sha256 | |
315 | (base32 | |
316 | "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp")))) | |
317 | (build-system python-build-system) | |
318 | (arguments | |
319 | `(#:tests? #f ; no tests | |
320 | #:python ,python-2 | |
321 | #:phases | |
322 | (modify-phases %standard-phases | |
323 | (add-before 'build 'add-sitedirs | |
324 | ;; .pth files are not automatically interpreted unless the | |
325 | ;; directories containing them are added as "sites". The directories | |
326 | ;; are then added to those in the PYTHONPATH. This is required for | |
327 | ;; the operation of pygtk. | |
328 | (lambda _ | |
329 | (substitute* "gtklick/gtklick.py" | |
330 | (("import pygtk") | |
331 | "import pygtk, site, sys | |
332 | for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)")))) | |
333 | (add-after 'unpack 'inject-store-path-to-klick | |
334 | (lambda* (#:key inputs #:allow-other-keys) | |
335 | (substitute* "gtklick/klick_backend.py" | |
336 | (("KLICK_PATH = 'klick'") | |
337 | (string-append "KLICK_PATH = '" | |
338 | (assoc-ref inputs "klick") | |
339 | "/bin/klick'"))) | |
340 | #t))))) | |
341 | (inputs | |
342 | `(("klick" ,klick) | |
343 | ("python2-pyliblo" ,python2-pyliblo) | |
344 | ("python2-pygtk" ,python2-pygtk))) | |
345 | (native-inputs | |
346 | `(("gettext" ,gnu-gettext))) | |
347 | (home-page "http://das.nasophon.de/gtklick/") | |
348 | (synopsis "Simple metronome with an easy-to-use graphical interface") | |
349 | (description | |
350 | "Gtklick is a simple metronome with an easy-to-use graphical user | |
351 | interface. It is implemented as a frontend to @code{klick}.") | |
352 | (license license:gpl2+))) | |
353 | ||
1b6826d3 RW |
354 | (define-public lilypond |
355 | (package | |
356 | (name "lilypond") | |
398abcf8 | 357 | (version "2.19.33") |
1b6826d3 RW |
358 | (source (origin |
359 | (method url-fetch) | |
360 | (uri (string-append | |
361 | "http://download.linuxaudio.org/lilypond/sources/v" | |
362 | (version-major+minor version) "/" | |
363 | name "-" version ".tar.gz")) | |
364 | (sha256 | |
365 | (base32 | |
398abcf8 | 366 | "0s4vbbfy4xwq4da4kmlnndalmcyx2jaz7y8praah2146qbnr90xh")))) |
1b6826d3 RW |
367 | (build-system gnu-build-system) |
368 | (arguments | |
127b04d7 | 369 | `(#:tests? #f ; out-test/collated-files.html fails |
1b6826d3 | 370 | #:out-of-source? #t |
409be57b | 371 | #:make-flags '("conf=www") ;to generate images for info manuals |
127b04d7 | 372 | #:configure-flags |
409be57b RW |
373 | (list "CONFIGURATION=www" |
374 | (string-append "--with-texgyre-dir=" | |
127b04d7 RW |
375 | (assoc-ref %build-inputs "font-tex-gyre") |
376 | "/share/fonts/opentype/")) | |
1b6826d3 | 377 | #:phases |
a8bc747a | 378 | (modify-phases %standard-phases |
409be57b RW |
379 | (add-after 'unpack 'fix-path-references |
380 | (lambda _ | |
a8bc747a RW |
381 | (substitute* "scm/backend-library.scm" |
382 | (("\\(search-executable '\\(\"gs\"\\)\\)") | |
409be57b RW |
383 | (string-append "\"" (which "gs") "\"")) |
384 | (("\"/bin/sh\"") | |
385 | (string-append "\"" (which "sh") "\""))) | |
a8bc747a RW |
386 | #t)) |
387 | (add-before 'configure 'prepare-configuration | |
388 | (lambda _ | |
389 | (substitute* "configure" | |
7affb2c1 RW |
390 | (("SHELL=/bin/sh") "SHELL=sh") |
391 | ;; When checking the fontforge version do not consider the | |
392 | ;; version string that's part of the directory. | |
393 | (("head -n") "tail -n")) | |
409be57b RW |
394 | (setenv "out" "www") |
395 | (setenv "conf" "www") | |
396 | #t)) | |
397 | (add-after 'install 'install-info | |
398 | (lambda _ | |
399 | (zero? (system* "make" | |
400 | "-j" (number->string (parallel-job-count)) | |
401 | "conf=www" "install-info"))))))) | |
1b6826d3 RW |
402 | (inputs |
403 | `(("guile" ,guile-1.8) | |
404 | ("font-dejavu" ,font-dejavu) | |
127b04d7 | 405 | ("font-tex-gyre" ,font-tex-gyre) |
1b6826d3 RW |
406 | ("fontconfig" ,fontconfig) |
407 | ("freetype" ,freetype) | |
d8eb9121 | 408 | ("ghostscript" ,ghostscript-gs) |
1b6826d3 RW |
409 | ("pango" ,pango) |
410 | ("python" ,python-2))) | |
411 | (native-inputs | |
412 | `(("bison" ,bison) | |
413 | ("perl" ,perl) | |
414 | ("flex" ,flex) | |
415 | ("fontforge" ,fontforge) | |
416 | ("dblatex" ,dblatex) | |
417 | ("gettext" ,gnu-gettext) | |
418 | ("imagemagick" ,imagemagick) | |
419 | ("netpbm" ,netpbm) ;for pngtopnm | |
420 | ("texlive" ,texlive) ;metafont and metapost | |
421 | ("texinfo" ,texinfo) | |
422 | ("texi2html" ,texi2html) | |
423 | ("rsync" ,rsync) | |
424 | ("pkg-config" ,pkg-config) | |
425 | ("zip" ,zip))) | |
426 | (home-page "http://www.lilypond.org/") | |
427 | (synopsis "Music typesetting") | |
428 | (description | |
429 | "GNU LilyPond is a music typesetter, which produces high-quality sheet | |
430 | music. Music is input in a text file containing control sequences which are | |
431 | interpreted by LilyPond to produce the final document. It is extendable with | |
432 | Guile.") | |
55ca5e80 LC |
433 | (license license:gpl3+) |
434 | ||
435 | ;; On armhf and mips64el, building the documentation sometimes leads to | |
436 | ;; more than an hour of silence, so double the max silent time. | |
437 | (properties `((max-silent-time . 7200))))) | |
c267cc15 | 438 | |
8e80244a RW |
439 | (define-public non-sequencer |
440 | ;; The latest tagged release is three years old and uses a custom build | |
441 | ;; system, so we take the last commit affecting the "sequencer" directory. | |
698bd297 | 442 | (let ((commit "1d9bd576f6bf7ea240af5f7a60260592750af0dd")) |
8e80244a RW |
443 | (package |
444 | (name "non-sequencer") | |
698bd297 | 445 | (version (string-append "1.9.5-" (string-take commit 7))) |
8e80244a RW |
446 | (source (origin |
447 | (method git-fetch) | |
448 | (uri (git-reference | |
449 | (url "git://git.tuxfamily.org/gitroot/non/non.git") | |
450 | (commit commit))) | |
451 | (sha256 | |
452 | (base32 | |
453 | "0pkkw8q6d55j38xm7r4rwpdv1wy00a44h8c4wrn7vbgpq9nij46y")) | |
454 | (file-name (string-append name "-" version "-checkout")))) | |
455 | (build-system waf-build-system) | |
456 | (arguments | |
457 | `(#:tests? #f ;no "check" target | |
e591a4d6 RW |
458 | #:configure-flags |
459 | (list "--project=sequencer" | |
460 | ;; Disable the use of SSE unless on x86_64. | |
461 | ,@(if (not (string-prefix? "x86_64" (or (%current-target-system) | |
462 | (%current-system)))) | |
463 | '("--disable-sse") | |
464 | '())) | |
d8c317df SB |
465 | #:phases |
466 | (modify-phases %standard-phases | |
467 | (add-before | |
468 | 'configure 'set-flags | |
469 | (lambda _ | |
470 | ;; Compile with C++11, required by libsigc++. | |
471 | (setenv "CXXFLAGS" "-std=c++11") | |
472 | #t))) | |
8e80244a RW |
473 | #:python ,python-2)) |
474 | (inputs | |
475 | `(("jack" ,jack-1) | |
476 | ("libsigc++" ,libsigc++) | |
477 | ("liblo" ,liblo) | |
478 | ("ntk" ,ntk))) | |
479 | (native-inputs | |
480 | `(("pkg-config" ,pkg-config))) | |
481 | (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer") | |
482 | (synopsis "Pattern-based MIDI sequencer") | |
483 | (description | |
484 | "The Non Sequencer is a powerful, lightweight, real-time, | |
485 | pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for | |
486 | MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non | |
487 | Sequencer happens on-line, in real-time. Music can be composed live, while the | |
488 | transport is rolling.") | |
489 | (license license:gpl2+)))) | |
490 | ||
c267cc15 RW |
491 | (define-public solfege |
492 | (package | |
493 | (name "solfege") | |
494 | (version "3.22.2") | |
495 | (source (origin | |
496 | (method url-fetch) | |
497 | (uri (string-append | |
498 | "mirror://gnu/solfege/solfege-" | |
499 | version ".tar.xz")) | |
500 | (sha256 | |
501 | (base32 | |
502 | "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i")))) | |
503 | (build-system gnu-build-system) | |
504 | (arguments | |
505 | `(#:tests? #f ; xmllint attempts to download DTD | |
506 | #:test-target "test" | |
507 | #:phases | |
508 | (alist-cons-after | |
509 | 'unpack 'fix-configuration | |
510 | (lambda* (#:key inputs #:allow-other-keys) | |
511 | (substitute* "default.config" | |
512 | (("csound=csound") | |
513 | (string-append "csound=" | |
514 | (assoc-ref inputs "csound") | |
515 | "/bin/csound")) | |
516 | (("/usr/bin/aplay") | |
517 | (string-append (assoc-ref inputs "aplay") | |
518 | "/bin/aplay")) | |
519 | (("/usr/bin/timidity") | |
520 | (string-append (assoc-ref inputs "timidity") | |
521 | "/bin/timidity")) | |
522 | (("/usr/bin/mpg123") | |
523 | (string-append (assoc-ref inputs "mpg123") | |
524 | "/bin/mpg123")) | |
525 | (("/usr/bin/ogg123") | |
526 | (string-append (assoc-ref inputs "ogg123") | |
527 | "/bin/ogg123")))) | |
528 | (alist-cons-before | |
529 | 'build 'patch-python-shebangs | |
530 | (lambda _ | |
531 | ;; Two python scripts begin with a Unicode BOM, so patch-shebang | |
532 | ;; has no effect. | |
533 | (substitute* '("solfege/parsetree.py" | |
534 | "solfege/presetup.py") | |
535 | (("#!/usr/bin/python") (string-append "#!" (which "python"))))) | |
536 | (alist-cons-before | |
537 | 'build 'add-sitedirs | |
538 | ;; .pth files are not automatically interpreted unless the | |
539 | ;; directories containing them are added as "sites". The directories | |
540 | ;; are then added to those in the PYTHONPATH. This is required for | |
541 | ;; the operation of pygtk and pygobject. | |
542 | (lambda _ | |
543 | (substitute* "run-solfege.py" | |
544 | (("import os") | |
545 | "import os, site | |
546 | for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))) | |
547 | (alist-cons-before | |
548 | 'build 'adjust-config-file-prefix | |
549 | (lambda* (#:key outputs #:allow-other-keys) | |
550 | (substitute* "run-solfege.py" | |
551 | (("prefix = os.path.*$") | |
552 | (string-append "prefix = " (assoc-ref outputs "out"))))) | |
553 | (alist-cons-after | |
554 | 'install 'wrap-program | |
555 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
f3045a5b | 556 | ;; Make sure 'solfege' runs with the correct PYTHONPATH. |
c267cc15 | 557 | (let* ((out (assoc-ref outputs "out")) |
f3045a5b | 558 | (path (getenv "PYTHONPATH"))) |
c267cc15 | 559 | (wrap-program (string-append out "/bin/solfege") |
f3045a5b | 560 | `("PYTHONPATH" ":" prefix (,path))))) |
c267cc15 RW |
561 | %standard-phases))))))) |
562 | (inputs | |
563 | `(("python" ,python-2) | |
564 | ("pygtk" ,python2-pygtk) | |
565 | ("gettext" ,gnu-gettext) | |
566 | ("gtk" ,gtk+) | |
e8309291 | 567 | ("lilypond" ,lilypond) |
c267cc15 RW |
568 | ;; players needed at runtime |
569 | ("aplay" ,alsa-utils) | |
570 | ("csound" ,csound) ; optional, needed for some exercises | |
571 | ("mpg123" ,mpg123) | |
572 | ("ogg123" ,vorbis-tools) | |
573 | ("timidity" ,timidity++))) | |
574 | (native-inputs | |
575 | `(("pkg-config" ,pkg-config) | |
576 | ("txt2man" ,txt2man) | |
577 | ("libxml2" ,libxml2) ; for tests | |
578 | ("ghostscript" ,ghostscript) | |
c267cc15 RW |
579 | ("texinfo" ,texinfo))) |
580 | (home-page "https://www.gnu.org/software/solfege/") | |
581 | (synopsis "Ear training") | |
582 | (description | |
583 | "GNU Solfege is a program for practicing musical ear-training. With it, | |
584 | you can practice your recognition of various musical intervals and chords. It | |
585 | features a statistics overview so you can monitor your progress across several | |
586 | sessions. Solfege is also designed to be extensible so you can easily write | |
587 | your own lessons.") | |
588 | (license license:gpl3+))) | |
6260d1a8 | 589 | |
8b9ec354 RW |
590 | (define-public powertabeditor |
591 | (package | |
592 | (name "powertabeditor") | |
d19cf783 | 593 | (version "2.0.0-alpha8") |
8b9ec354 RW |
594 | (source (origin |
595 | (method url-fetch) | |
596 | (uri (string-append | |
597 | "https://github.com/powertab/powertabeditor/archive/" | |
598 | version ".tar.gz")) | |
599 | (file-name (string-append name "-" version ".tar.gz")) | |
600 | (sha256 | |
601 | (base32 | |
d19cf783 | 602 | "0gaa2x209v3azql8ak3r1n9a9qbxjx2ssirvwdxwklv2lmfqkm82")) |
8b9ec354 RW |
603 | (modules '((guix build utils))) |
604 | (snippet | |
605 | '(begin | |
606 | ;; Remove bundled sources for external libraries | |
607 | (delete-file-recursively "external") | |
608 | (substitute* "CMakeLists.txt" | |
609 | (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "") | |
8b9ec354 RW |
610 | (("add_subdirectory\\(external\\)") "")) |
611 | (substitute* "test/CMakeLists.txt" | |
612 | (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "")) | |
613 | ||
614 | ;; Add install target | |
615 | (substitute* "source/CMakeLists.txt" | |
616 | (("qt5_use_modules") | |
617 | (string-append | |
618 | "install(TARGETS powertabeditor " | |
619 | "RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)\n" | |
620 | "install(FILES data/tunings.json DESTINATION " | |
621 | "${CMAKE_INSTALL_PREFIX}/share/powertabeditor/)\n" | |
622 | "qt5_use_modules"))) | |
623 | #t)))) | |
624 | (build-system cmake-build-system) | |
625 | (arguments | |
7e11d113 | 626 | `(#:modules ((guix build cmake-build-system) |
8b9ec354 RW |
627 | (guix build utils) |
628 | (ice-9 match)) | |
629 | #:configure-flags | |
630 | ;; CMake appears to lose the RUNPATH for some reason, so it has to be | |
631 | ;; explicitly set with CMAKE_INSTALL_RPATH. | |
7e11d113 RW |
632 | (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" |
633 | "-DCMAKE_ENABLE_PRECOMPILED_HEADERS=OFF" ; if ON pte_tests cannot be built | |
634 | (string-append "-DCMAKE_INSTALL_RPATH=" | |
8b9ec354 RW |
635 | (string-join (map (match-lambda |
636 | ((name . directory) | |
637 | (string-append directory "/lib"))) | |
638 | %build-inputs) ";"))) | |
639 | #:phases | |
640 | (modify-phases %standard-phases | |
7e11d113 RW |
641 | (replace |
642 | 'check | |
643 | (lambda _ | |
644 | (zero? (system* "bin/pte_tests" | |
645 | ;; Exclude this failing test | |
646 | "~Formats/PowerTabOldImport/Directions")))) | |
647 | (add-before | |
648 | 'configure 'fix-tests | |
649 | (lambda _ | |
650 | ;; Tests cannot be built with precompiled headers | |
651 | (substitute* "test/CMakeLists.txt" | |
652 | (("cotire\\(pte_tests\\)") "")) | |
653 | #t)) | |
8b9ec354 RW |
654 | (add-before |
655 | 'configure 'remove-third-party-libs | |
656 | (lambda* (#:key inputs #:allow-other-keys) | |
657 | ;; Link with required static libraries, because we're not | |
658 | ;; using the bundled version of withershins. | |
659 | (substitute* '("source/CMakeLists.txt" | |
660 | "test/CMakeLists.txt") | |
7e11d113 | 661 | (("target_link_libraries\\((powertabeditor|pte_tests)" _ target) |
8b9ec354 RW |
662 | (string-append "target_link_libraries(" target " " |
663 | (assoc-ref inputs "binutils") | |
664 | "/lib/libbfd.a " | |
d6902798 | 665 | (assoc-ref inputs "libiberty") |
8b9ec354 RW |
666 | "/lib/libiberty.a " |
667 | "dl"))) | |
668 | #t))))) | |
669 | (inputs | |
670 | `(("boost" ,boost) | |
671 | ("alsa-lib" ,alsa-lib) | |
0a0bfd68 | 672 | ("qtbase" ,qtbase) |
8b9ec354 | 673 | ("withershins" ,withershins) |
d6902798 | 674 | ("libiberty" ,libiberty) ;for withershins |
8b9ec354 RW |
675 | ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins) |
676 | ("timidity" ,timidity++) | |
677 | ("pugixml" ,pugixml) | |
678 | ("rtmidi" ,rtmidi) | |
679 | ("rapidjson" ,rapidjson) | |
680 | ("zlib" ,zlib))) | |
681 | (native-inputs | |
682 | `(("catch" ,catch-framework) | |
683 | ("pkg-config" ,pkg-config))) | |
684 | (home-page "http://powertabs.net") | |
685 | (synopsis "Guitar tablature editor") | |
686 | (description | |
687 | "Power Tab Editor 2.0 is the successor to the famous original Power Tab | |
688 | Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.") | |
689 | (license license:gpl3+))) | |
690 | ||
b095e762 RW |
691 | (define-public synthv1 |
692 | (package | |
693 | (name "synthv1") | |
cb1436d8 | 694 | (version "0.7.5") |
b095e762 RW |
695 | (source (origin |
696 | (method url-fetch) | |
697 | (uri | |
de67e922 LF |
698 | (string-append "mirror://sourceforge/synthv1/synthv1/" version |
699 | "/synthv1-" version ".tar.gz")) | |
b095e762 RW |
700 | (sha256 |
701 | (base32 | |
cb1436d8 | 702 | "0h5zja78phf9705i9g54zh61iczb24iv7rxhljyms30sjgajig1y")))) |
b095e762 RW |
703 | (build-system gnu-build-system) |
704 | ;; There are no tests. | |
705 | (arguments `(#:tests? #f)) | |
706 | (inputs | |
707 | `(("jack" ,jack-1) | |
708 | ("lv2" ,lv2) | |
709 | ("alsa-lib" ,alsa-lib) | |
710 | ("liblo" ,liblo) | |
e5f2afdb EF |
711 | ("qtbase" ,qtbase) |
712 | ("qttools" ,qttools))) | |
b095e762 RW |
713 | (home-page "http://synthv1.sourceforge.net") |
714 | (synopsis "Polyphonic subtractive synthesizer") | |
715 | (description | |
716 | "Synthv1 is an old-school subtractive polyphonic synthesizer with four | |
717 | oscillators and stereo effects.") | |
718 | (license license:gpl2+))) | |
2bb00612 RW |
719 | |
720 | (define-public amsynth | |
721 | (package | |
722 | (name "amsynth") | |
723 | (version "1.6.4") | |
724 | (source | |
725 | (origin | |
726 | (method url-fetch) | |
727 | (uri (string-append "https://github.com/amsynth/amsynth/releases/" | |
728 | "download/release-" version | |
729 | "/amsynth-" version ".tar.bz2")) | |
730 | (sha256 | |
731 | (base32 | |
732 | "07dp9dl38g9krjqxxh89l2z42z08yzrl57cx95b1l67xnxwjp5k3")))) | |
733 | (build-system gnu-build-system) | |
734 | (arguments | |
735 | `(#:phases | |
736 | (modify-phases %standard-phases | |
737 | (add-before 'configure 'set-flags | |
738 | (lambda _ | |
739 | ;; Compile with C++11, required by gtkmm. | |
740 | (setenv "CXXFLAGS" "-std=c++11") | |
741 | #t))))) | |
742 | (inputs | |
743 | `(("alsa-lib" ,alsa-lib) | |
744 | ("jack" ,jack-1) | |
745 | ("lv2" ,lv2) | |
746 | ("libsndfile" ,libsndfile) | |
747 | ("gtk+" ,gtk+-2) | |
748 | ("gtkmm" ,gtkmm-2))) | |
749 | (native-inputs | |
750 | `(("pkg-config" ,pkg-config))) | |
751 | (home-page "http://amsynth.github.io") | |
752 | (synopsis "Analog modeling synthesizer") | |
753 | (description | |
754 | "amsynth is an easy-to-use software synthesizer with a classic | |
755 | subtractive synthesizer topology. Its features include: dual | |
756 | oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct | |
757 | resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato | |
758 | keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO | |
759 | which can modulate the oscillators, filter, and amplitude; distortion and | |
760 | reverb effects.") | |
761 | (license license:gpl2+))) | |
b095e762 | 762 | |
ec8da0e2 RW |
763 | (define-public setbfree |
764 | (package | |
765 | (name "setbfree") | |
a39f48b8 | 766 | (version "0.8.1") |
ec8da0e2 RW |
767 | (source (origin |
768 | (method url-fetch) | |
769 | (uri | |
a39f48b8 RW |
770 | (string-append "https://github.com/pantherb/setBfree/archive/v" |
771 | version ".tar.gz")) | |
772 | (file-name (string-append name "-" version ".tar.gz")) | |
ec8da0e2 RW |
773 | (sha256 |
774 | (base32 | |
a39f48b8 | 775 | "0hj0rqk5yd4fzs7bwy6a6nhqgrmcggkjcr4il76rxy92r7nwabf3")))) |
ec8da0e2 RW |
776 | (build-system gnu-build-system) |
777 | (arguments | |
778 | `(#:tests? #f ; no "check" target | |
779 | #:make-flags | |
780 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
781 | (string-append "FONTFILE=" | |
782 | (assoc-ref %build-inputs "font-bitstream-vera") | |
b42d4508 RW |
783 | "/share/fonts/truetype/VeraBd.ttf") |
784 | ;; Disable unsupported optimization flags on non-x86 | |
785 | ,@(let ((system (or (%current-target-system) | |
786 | (%current-system)))) | |
787 | (if (or (string-prefix? "x86_64" system) | |
788 | (string-prefix? "i686" system)) | |
789 | '() | |
790 | '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3")))) | |
ec8da0e2 RW |
791 | #:phases |
792 | (modify-phases %standard-phases | |
793 | (add-before 'build 'set-CC-variable | |
794 | (lambda _ (setenv "CC" "gcc") #t)) | |
795 | (delete 'configure)))) | |
796 | (inputs | |
797 | `(("jack" ,jack-1) | |
798 | ("lv2" ,lv2) | |
799 | ("zita-convolver" ,zita-convolver) | |
800 | ("glu" ,glu) | |
801 | ("ftgl" ,ftgl) | |
802 | ("font-bitstream-vera" ,font-bitstream-vera))) | |
803 | (native-inputs | |
804 | `(("help2man" ,help2man) | |
805 | ("pkg-config" ,pkg-config))) | |
806 | (home-page "http://setbfree.org") | |
807 | (synopsis "Tonewheel organ") | |
808 | (description | |
809 | "setBfree is a MIDI-controlled, software synthesizer designed to imitate | |
810 | the sound and properties of the electromechanical organs and sound | |
811 | modification devices that brought world-wide fame to the names and products of | |
812 | Laurens Hammond and Don Leslie.") | |
813 | (license license:gpl2+))) | |
814 | ||
770305f4 RW |
815 | (define-public beast |
816 | (package | |
817 | (name "beast") | |
818 | (version "0.10.0") | |
819 | (source (origin | |
820 | (method url-fetch) | |
821 | (uri (string-append "https://testbit.eu/pub/dists/beast/beast-" | |
822 | version ".tar.xz")) | |
823 | (sha256 | |
824 | (base32 | |
825 | "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn")))) | |
826 | (build-system gnu-build-system) | |
827 | (inputs | |
828 | `(("rapicorn" ,rapicorn) | |
829 | ("guile" ,guile-1.8) | |
830 | ("python" ,python-2) | |
831 | ("cython" ,python2-cython) | |
832 | ("libgnomecanvas" ,libgnomecanvas) | |
833 | ("libogg" ,libogg) | |
834 | ("libmad" ,libmad) | |
835 | ("flac" ,flac) | |
836 | ("alsa-lib" ,alsa-lib) | |
837 | ("libvorbis" ,libvorbis) | |
838 | ("gettext" ,gnu-gettext))) | |
839 | (native-inputs | |
840 | `(("pkg-config" ,pkg-config) | |
841 | ("glib:bin" ,glib "bin") | |
842 | ("perl" ,perl) | |
843 | ("perl-xml-parser" ,perl-xml-parser))) | |
844 | (home-page "https://testbit.eu/wiki/Beast_Home") | |
845 | (synopsis "Music composition and modular synthesis environment") | |
846 | (description | |
847 | "Beast is a music composition and modular synthesis application. It | |
848 | supports a wide range of standards in the field, such as MIDI, various audio | |
849 | file formats and LADSPA modules. It allows for multitrack editing, real-time | |
850 | synthesis, 32bit audio rendering, precise timing down to sample granularity, | |
851 | on-demand and partial loading of wave files, on the fly decoding, stereo | |
852 | mixing, FFT scopes, MIDI automation and full scriptability in Scheme.") | |
853 | (license license:gpl3+))) | |
854 | ||
96250294 RW |
855 | (define-public bristol |
856 | (package | |
857 | (name "bristol") | |
858 | (version "0.60.11") | |
859 | (source (origin | |
860 | (method url-fetch) | |
861 | (uri (string-append "mirror://sourceforge/bristol/bristol/" | |
862 | (version-major+minor version) | |
863 | "/bristol-" version ".tar.gz")) | |
864 | (sha256 | |
865 | (base32 | |
866 | "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx")))) | |
867 | (build-system gnu-build-system) | |
18ef998b RW |
868 | (arguments |
869 | `(#:phases | |
870 | (modify-phases %standard-phases | |
871 | (add-after 'unpack 'remove-sse-flags | |
872 | (lambda* (#:key system #:allow-other-keys) | |
873 | (when (not (or (string-prefix? "x86_64" system) | |
874 | (string-prefix? "i686" system))) | |
875 | (substitute* "bristol/Makefile.in" | |
876 | (("-msse -mfpmath=sse") ""))) | |
73124d34 RW |
877 | #t)) |
878 | ;; We know that Bristol has been linked with JACK and we don't have | |
879 | ;; ldd, so we can just skip this check. | |
880 | (add-after 'unpack 'do-not-grep-for-jack | |
881 | (lambda _ | |
882 | (substitute* "bin/startBristol.in" | |
883 | (("ldd `which bristol` | grep jack") "echo guix")) | |
18ef998b | 884 | #t))))) |
96250294 RW |
885 | (inputs |
886 | `(("alsa-lib" ,alsa-lib) | |
887 | ("jack" ,jack-1) | |
888 | ("liblo" ,liblo) | |
889 | ("libx11" ,libx11))) | |
890 | (native-inputs | |
891 | `(("pkg-config" ,pkg-config))) | |
892 | (home-page "http://bristol.sourceforge.net/") | |
893 | (synopsis "Synthesizer emulator") | |
894 | (description | |
895 | "Bristol is an emulation package for a number of different 'classic' | |
896 | synthesizers including additive and subtractive and a few organs. The | |
897 | application consists of the engine, which is called bristol, and its own GUI | |
898 | library called brighton that represents all the emulations. There are | |
899 | currently more than twenty different emulations; each does sound different | |
900 | although the author maintains that the quality and accuracy of each emulation | |
901 | is subjective.") | |
902 | (license license:gpl3+))) | |
903 | ||
6260d1a8 RW |
904 | (define-public tuxguitar |
905 | (package | |
906 | (name "tuxguitar") | |
907 | (version "1.2") | |
908 | (source (origin | |
909 | (method url-fetch) | |
910 | (uri (string-append | |
911 | "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-" | |
912 | version "/tuxguitar-src-" version ".tar.gz")) | |
913 | (sha256 | |
914 | (base32 | |
915 | "1g1yf2gd06fzdhqb8kb8dmdcmr602s9y24f01kyl4940wimgr944")))) | |
916 | (build-system gnu-build-system) | |
917 | (arguments | |
918 | `(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath=" | |
919 | (assoc-ref %outputs "out") "/lib") | |
920 | (string-append "PREFIX=" | |
921 | (assoc-ref %outputs "out")) | |
922 | (string-append "SWT_PATH=" | |
1ad15c16 | 923 | (assoc-ref %build-inputs "java-swt") |
6260d1a8 RW |
924 | "/share/java/swt.jar")) |
925 | #:tests? #f ;no "check" target | |
926 | #:parallel-build? #f ;not supported | |
927 | #:phases | |
5f1c9498 RW |
928 | (modify-phases %standard-phases |
929 | (delete 'configure) | |
930 | (add-before 'build 'enter-dir-and-set-flags | |
931 | (lambda* (#:key inputs #:allow-other-keys) | |
932 | (chdir "TuxGuitar") | |
933 | (substitute* "GNUmakefile" | |
6da2e99e RW |
934 | (("GCJFLAGS\\+=(.*)" _ rest) |
935 | (string-append "GCJFLAGS=-fsource=1.4 -fPIC " rest)) | |
5f1c9498 RW |
936 | (("PROPERTIES\\?=") |
937 | (string-append "PROPERTIES?= -Dswt.library.path=" | |
1ad15c16 | 938 | (assoc-ref inputs "java-swt") "/lib")) |
5f1c9498 RW |
939 | (("\\$\\(GCJ\\) -o") "$(GCJ) $(LDFLAGS) -o")) |
940 | #t))))) | |
6260d1a8 | 941 | (inputs |
1ad15c16 | 942 | `(("java-swt" ,java-swt))) |
6260d1a8 | 943 | (native-inputs |
397dbde8 | 944 | `(("gcj" ,gcj) |
6260d1a8 RW |
945 | ("pkg-config" ,pkg-config))) |
946 | (home-page "http://tuxguitar.com.ar") | |
947 | (synopsis "Multitrack tablature editor and player") | |
948 | (description | |
949 | "TuxGuitar is a guitar tablature editor with player support through midi. | |
950 | It can display scores and multitrack tabs. TuxGuitar provides various | |
951 | additional features, including autoscrolling while playing, note duration | |
952 | management, bend/slide/vibrato/hammer-on/pull-off effects, support for | |
953 | tuplets, time signature management, tempo management, gp3/gp4/gp5 import and | |
954 | export.") | |
955 | (license license:lgpl2.1+))) | |
2d0fd07b RW |
956 | |
957 | (define-public pd | |
958 | (package | |
959 | (name "pd") | |
960 | (version "0.45.4") | |
961 | (source (origin | |
962 | (method url-fetch) | |
963 | (uri | |
964 | (string-append "mirror://sourceforge/pure-data/pure-data/" | |
965 | version "/pd-" (version-major+minor version) | |
966 | "-" (last (string-split version #\.)) | |
967 | ".src.tar.gz")) | |
968 | (sha256 | |
969 | (base32 | |
970 | "1ls2ap5yi2zxvmr247621g4jx0hhfds4j5704a050bn2n3l0va2p")))) | |
971 | (build-system gnu-build-system) | |
972 | (arguments | |
973 | `(#:tests? #f ; no "check" target | |
974 | #:phases | |
975 | (modify-phases %standard-phases | |
976 | (add-before | |
977 | 'configure 'fix-wish-path | |
978 | (lambda _ | |
979 | (substitute* "src/s_inter.c" | |
980 | ((" wish ") (string-append " " (which "wish8.6") " "))) | |
981 | (substitute* "tcl/pd-gui.tcl" | |
982 | (("exec wish ") (string-append "exec " (which "wish8.6") " "))) | |
983 | #t)) | |
984 | (add-after | |
985 | 'unpack 'autoconf | |
986 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) | |
987 | (native-inputs | |
988 | `(("autoconf" ,autoconf) | |
989 | ("automake" ,automake) | |
990 | ("libtool" ,libtool) | |
991 | ("gettext" ,gnu-gettext) | |
992 | ("pkg-config" ,pkg-config))) | |
993 | (inputs | |
994 | `(("tk" ,tk) | |
995 | ("alsa-lib" ,alsa-lib) | |
996 | ("jack" ,jack-1))) | |
997 | (home-page "http://puredata.info") | |
998 | (synopsis "Visual programming language for artistic performances") | |
999 | (description | |
1000 | "Pure Data (aka Pd) is a visual programming language. Pd enables | |
1001 | musicians, visual artists, performers, researchers, and developers to create | |
1002 | software graphically, without writing lines of code. Pd is used to process | |
1003 | and generate sound, video, 2D/3D graphics, and interface sensors, input | |
1004 | devices, and MIDI. Pd can easily work over local and remote networks to | |
1005 | integrate wearable technology, motor systems, lighting rigs, and other | |
1006 | equipment. Pd is suitable for learning basic multimedia processing and visual | |
1007 | programming methods as well as for realizing complex systems for large-scale | |
1008 | projects.") | |
1009 | (license license:bsd-3))) | |
821664f1 | 1010 | |
aacb52fb RW |
1011 | (define-public portmidi |
1012 | (package | |
1013 | (name "portmidi") | |
1014 | (version "217") | |
1015 | (source (origin | |
1016 | (method url-fetch) | |
1017 | (uri (string-append "mirror://sourceforge/portmedia/portmidi/" | |
1018 | version "/portmidi-src-" version ".zip")) | |
1019 | (sha256 | |
1020 | (base32 | |
1021 | "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88")) | |
1022 | (patches (list (search-patch "portmidi-modular-build.patch"))))) | |
1023 | (build-system cmake-build-system) | |
1024 | (arguments | |
1025 | `(#:tests? #f ; tests cannot be linked | |
1026 | #:configure-flags | |
1027 | (list "-DPORTMIDI_ENABLE_JAVA=Off" | |
1028 | "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set | |
1029 | "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking | |
1030 | (inputs | |
1031 | `(("alsa-lib" ,alsa-lib))) | |
1032 | (native-inputs | |
1033 | `(("unzip" ,unzip))) | |
1034 | (home-page "http://portmedia.sourceforge.net/portmidi/") | |
1035 | (synopsis "Library for MIDI I/O") | |
1036 | (description | |
1037 | "PortMidi is a library supporting real-time input and output of MIDI data | |
1038 | using a system-independent interface.") | |
1039 | (license license:expat))) | |
f65d59fc RW |
1040 | |
1041 | (define-public python-pyportmidi | |
1042 | (package | |
1043 | (name "python-pyportmidi") | |
1044 | (version (package-version portmidi)) | |
1045 | (source (package-source portmidi)) | |
1046 | (build-system python-build-system) | |
1047 | (arguments | |
1048 | `(#:tests? #f ; no tests included | |
1049 | #:phases | |
1050 | (modify-phases %standard-phases | |
1051 | (add-after 'unpack 'enter-dir | |
1052 | (lambda _ (chdir "pm_python") #t)) | |
1053 | (add-after 'enter-dir 'fix-setup.py | |
1054 | (lambda _ | |
1055 | (substitute* "setup.py" | |
1056 | ;; Use Python 3 syntax | |
1057 | (("print (\".*\")" _ text) | |
1058 | (string-append "print(" text ")\n")) | |
1059 | ;; TODO.txt and CHANGES.txt don't exist | |
1060 | (("CHANGES =.*") "CHANGES = \"\"\n") | |
1061 | (("TODO =.*") "TODO = \"\"\n")) | |
1062 | #t))))) | |
1063 | (inputs | |
1064 | `(("portmidi" ,portmidi) | |
1065 | ("alsa-lib" ,alsa-lib) | |
1066 | ("python-cython" ,python-cython))) | |
1067 | (native-inputs | |
1068 | `(("unzip" ,unzip))) | |
1069 | (home-page "http://portmedia.sourceforge.net/portmidi/") | |
1070 | (synopsis "Python bindings to PortMidi") | |
1071 | (description | |
1072 | "This package provides Python bindings to the PortMidi library.") | |
1073 | (license license:expat))) | |
aacb52fb | 1074 | |
821664f1 RW |
1075 | (define-public frescobaldi |
1076 | (package | |
1077 | (name "frescobaldi") | |
4b2eede4 | 1078 | (version "2.19.0") |
821664f1 RW |
1079 | (source (origin |
1080 | (method url-fetch) | |
1081 | (uri (string-append | |
1082 | "https://github.com/wbsoft/frescobaldi/releases/download/v" | |
1083 | version "/frescobaldi-" version ".tar.gz")) | |
1084 | (sha256 | |
1085 | (base32 | |
4b2eede4 | 1086 | "1rnk8i8dlshzx16n2qxcsqcs7kywgyazzyzw2vy4vp2gsm9vs9ml")))) |
821664f1 RW |
1087 | (build-system python-build-system) |
1088 | (inputs | |
1089 | `(("lilypond" ,lilypond) | |
6855b347 | 1090 | ("portmidi" ,portmidi) |
821664f1 RW |
1091 | ("python-pyqt-4" ,python-pyqt-4) |
1092 | ("python-ly" ,python-ly) | |
6855b347 | 1093 | ("python-pyportmidi" ,python-pyportmidi) |
821664f1 RW |
1094 | ("poppler" ,poppler) |
1095 | ("python-poppler-qt4" ,python-poppler-qt4) | |
1096 | ("python-sip" ,python-sip))) | |
1097 | (home-page "http://www.frescobaldi.org/") | |
1098 | (synopsis "LilyPond sheet music text editor") | |
1099 | (description | |
1100 | "Frescobaldi is a LilyPond sheet music text editor with syntax | |
1101 | highlighting and automatic completion. Among other things, it can render | |
1102 | scores next to the source, can capture input from MIDI or read MusicXML and | |
1103 | ABC files, has a MIDI player for proof-listening, and includes a documentation | |
1104 | browser.") | |
1105 | (license license:gpl2+))) | |
ddfddb0c | 1106 | |
bf76d780 RW |
1107 | (define-public drumstick |
1108 | (package | |
1109 | (name "drumstick") | |
cfac1272 | 1110 | (version "1.0.2") |
bf76d780 RW |
1111 | (source (origin |
1112 | (method url-fetch) | |
1113 | (uri (string-append "mirror://sourceforge/drumstick/" | |
1114 | version "/drumstick-" version ".tar.bz2")) | |
1115 | (sha256 | |
1116 | (base32 | |
cfac1272 | 1117 | "0l47gy9yywrc860db5g3wdqg8yc8qdb2lqq6wvw1dfim5j0vbail")))) |
bf76d780 RW |
1118 | (build-system cmake-build-system) |
1119 | (arguments | |
1120 | `(#:tests? #f ; no test target | |
1121 | #:configure-flags '("-DLIB_SUFFIX=") | |
1122 | #:phases | |
1123 | (modify-phases %standard-phases | |
1124 | (add-before 'configure 'fix-docbook | |
1125 | (lambda* (#:key inputs #:allow-other-keys) | |
1126 | (substitute* "cmake_admin/CreateManpages.cmake" | |
1127 | (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") | |
1128 | (string-append (assoc-ref inputs "docbook-xsl") | |
1129 | "/xml/xsl/docbook-xsl-" | |
1130 | ,(package-version docbook-xsl) | |
1131 | "/manpages/docbook.xsl"))) | |
1132 | #t))))) | |
1133 | (inputs | |
ca1cab82 EF |
1134 | `(("qtbase" ,qtbase) |
1135 | ("qtsvg" ,qtsvg) | |
bf76d780 RW |
1136 | ("alsa-lib" ,alsa-lib) |
1137 | ("fluidsynth" ,fluidsynth))) | |
1138 | (native-inputs | |
1139 | `(("pkg-config" ,pkg-config) | |
1140 | ("libxslt" ,libxslt) ;for xsltproc | |
1141 | ("docbook-xsl" ,docbook-xsl) | |
1142 | ("doxygen" ,doxygen))) | |
1143 | (home-page "http://drumstick.sourceforge.net/") | |
1144 | (synopsis "C++ MIDI library") | |
1145 | (description | |
1146 | "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It | |
1147 | includes a C++ wrapper around the ALSA library sequencer interface. A | |
1148 | complementary library provides classes for processing SMF (Standard MIDI | |
1149 | files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A | |
1150 | multiplatform realtime MIDI I/O library is also provided with various output | |
1151 | backends, including ALSA, OSS, Network and FluidSynth.") | |
1152 | (license license:gpl2+))) | |
1153 | ||
8e92cfb1 RW |
1154 | (define-public vmpk |
1155 | (package | |
1156 | (name "vmpk") | |
fb492b9a | 1157 | (version "0.6.2a") |
8e92cfb1 RW |
1158 | (source (origin |
1159 | (method url-fetch) | |
1160 | (uri (string-append "mirror://sourceforge/vmpk/vmpk/" | |
fb492b9a RW |
1161 | (string-drop-right version 1) |
1162 | "/vmpk-" version ".tar.bz2")) | |
8e92cfb1 RW |
1163 | (sha256 |
1164 | (base32 | |
fb492b9a | 1165 | "0259iikvxnfdiifrh02g8xgcxikrkca4nhd3an8xzx0bd6bk8ifi")))) |
8e92cfb1 RW |
1166 | (build-system cmake-build-system) |
1167 | (arguments | |
1168 | `(#:tests? #f ; no test target | |
1169 | #:phases | |
1170 | (modify-phases %standard-phases | |
1171 | (add-before 'configure 'fix-docbook | |
1172 | (lambda* (#:key inputs #:allow-other-keys) | |
1173 | (substitute* "cmake_admin/CreateManpages.cmake" | |
1174 | (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") | |
1175 | (string-append (assoc-ref inputs "docbook-xsl") | |
1176 | "/xml/xsl/docbook-xsl-" | |
1177 | ,(package-version docbook-xsl) | |
1178 | "/manpages/docbook.xsl"))) | |
1179 | #t))))) | |
1180 | (inputs | |
1181 | `(("drumstick" ,drumstick) | |
07831f7a EF |
1182 | ("qtbase" ,qtbase) |
1183 | ("qtsvg" ,qtsvg) | |
1184 | ("qttools" ,qttools) | |
1185 | ("qtx11extras" ,qtx11extras))) | |
8e92cfb1 RW |
1186 | (native-inputs |
1187 | `(("libxslt" ,libxslt) ;for xsltproc | |
1188 | ("docbook-xsl" ,docbook-xsl) | |
1189 | ("pkg-config" ,pkg-config))) | |
1190 | (home-page "http://vmpk.sourceforge.net") | |
1191 | (synopsis "Virtual MIDI piano keyboard") | |
1192 | (description | |
1193 | "Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It | |
1194 | doesn't produce any sound by itself, but can be used to drive a MIDI | |
1195 | synthesizer (either hardware or software, internal or external). You can use | |
1196 | the computer's keyboard to play MIDI notes, and also the mouse. You can use | |
1197 | the Virtual MIDI Piano Keyboard to display the played MIDI notes from another | |
1198 | instrument or MIDI file player.") | |
1199 | (license license:gpl3+))) | |
1200 | ||
ddfddb0c RW |
1201 | (define-public zynaddsubfx |
1202 | (package | |
1203 | (name "zynaddsubfx") | |
acf2320b | 1204 | (version "2.5.4") |
ddfddb0c RW |
1205 | (source (origin |
1206 | (method url-fetch) | |
1207 | (uri (string-append | |
1208 | "mirror://sourceforge/zynaddsubfx/zynaddsubfx/" | |
138e7697 | 1209 | version "/zynaddsubfx-" version ".tar.bz2")) |
ddfddb0c RW |
1210 | (sha256 |
1211 | (base32 | |
acf2320b | 1212 | "16llaa2wg2gbgjhwp3632b2vx9jvanj4csv7d41k233ms6d1sjq1")))) |
ddfddb0c | 1213 | (build-system cmake-build-system) |
00dfc97c RW |
1214 | (arguments |
1215 | `(#:phases | |
1216 | (modify-phases %standard-phases | |
1217 | ;; Move SSE compiler optimization flags from generic target to | |
1218 | ;; athlon64 and core2 targets, because otherwise the build would fail | |
1219 | ;; on non-Intel machines. | |
1220 | (add-after 'unpack 'remove-sse-flags-from-generic-target | |
1221 | (lambda _ | |
1222 | (substitute* "src/CMakeLists.txt" | |
1223 | (("-msse -msse2 -mfpmath=sse") "") | |
1224 | (("-march=(athlon64|core2)" flag) | |
1225 | (string-append flag " -msse -msse2 -mfpmath=sse"))) | |
1226 | #t))))) | |
ddfddb0c RW |
1227 | (inputs |
1228 | `(("liblo" ,liblo) | |
1229 | ("ntk" ,ntk) | |
1230 | ("alsa-lib" ,alsa-lib) | |
1231 | ("jack" ,jack-1) | |
1232 | ("fftw" ,fftw) | |
1233 | ("minixml" ,minixml) | |
1234 | ("libxpm" ,libxpm) | |
1235 | ("zlib" ,zlib))) | |
1236 | (native-inputs | |
1237 | `(("pkg-config" ,pkg-config))) | |
1238 | (home-page "http://zynaddsubfx.sf.net/") | |
1239 | (synopsis "Software synthesizer") | |
1240 | (description | |
1241 | "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers | |
1242 | three synthesizer engines, multitimbral and polyphonic synths, microtonal | |
1243 | capabilities, custom envelopes, effects, etc.") | |
1244 | (license license:gpl2))) | |
c493679f RW |
1245 | |
1246 | (define-public yoshimi | |
1247 | (package | |
1248 | (name "yoshimi") | |
8ddc5d57 | 1249 | (version "1.3.8.2") |
c493679f RW |
1250 | (source (origin |
1251 | (method url-fetch) | |
1252 | (uri (string-append "mirror://sourceforge/yoshimi/" | |
1253 | (version-major+minor version) | |
1254 | "/yoshimi-" version ".tar.bz2")) | |
1255 | (sha256 | |
1256 | (base32 | |
8ddc5d57 | 1257 | "0wl4ln6v1nkkx56kfah23chyrhga2vi93i82g0s200c4s4184xr8")))) |
c493679f RW |
1258 | (build-system cmake-build-system) |
1259 | (arguments | |
1260 | `(#:tests? #f ; there are no tests | |
1261 | #:configure-flags | |
1262 | (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR=" | |
1263 | (assoc-ref %outputs "out") "/share")) | |
1264 | #:phases | |
1265 | (modify-phases %standard-phases | |
1266 | (add-before 'configure 'enter-dir | |
1267 | (lambda _ (chdir "src") #t)) | |
1268 | ;; Move SSE compiler optimization flags from generic target to | |
1269 | ;; athlon64 and core2 targets, because otherwise the build would fail | |
1270 | ;; on non-Intel machines. | |
1271 | (add-after 'unpack 'remove-sse-flags-from-generic-target | |
1272 | (lambda _ | |
1273 | (substitute* "src/CMakeLists.txt" | |
1274 | (("-msse -msse2 -mfpmath=sse") "") | |
1275 | (("-march=(athlon64|core2)" flag) | |
1276 | (string-append flag " -msse -msse2 -mfpmath=sse"))) | |
1277 | #t))))) | |
1278 | (inputs | |
1279 | `(("boost" ,boost) | |
1280 | ("fftwf" ,fftwf) | |
1281 | ("alsa-lib" ,alsa-lib) | |
1282 | ("jack" ,jack-1) | |
1283 | ("fontconfig" ,fontconfig) | |
1284 | ("minixml" ,minixml) | |
1285 | ("mesa" ,mesa) | |
1286 | ("fltk" ,fltk) | |
1287 | ("lv2" ,lv2) | |
1288 | ("readline" ,readline) | |
1289 | ("ncurses" ,ncurses) | |
1290 | ("cairo" ,cairo) | |
1291 | ("zlib" ,zlib))) | |
1292 | (native-inputs | |
1293 | `(("pkg-config" ,pkg-config))) | |
1294 | (home-page "http://yoshimi.sourceforge.net/") | |
1295 | (synopsis "Multi-paradigm software synthesizer") | |
1296 | (description | |
1297 | "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software | |
1298 | synthesizer. It offers three synthesizer engines, multitimbral and polyphonic | |
1299 | synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi | |
1300 | improves on support for JACK features, such as JACK MIDI.") | |
1301 | (license license:gpl2))) | |
658212eb LF |
1302 | |
1303 | (define-public cursynth | |
1304 | (package | |
1305 | (name "cursynth") | |
1306 | (version "1.5") | |
1307 | (source | |
1308 | (origin | |
1309 | (method url-fetch) | |
1310 | (uri (string-append "mirror://gnu/cursynth/cursynth-" | |
1311 | version ".tar.gz")) | |
1312 | (sha256 | |
1313 | (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v")) | |
fc1adab1 | 1314 | (patches (search-patches "cursynth-wave-rand.patch")))) |
658212eb LF |
1315 | (build-system gnu-build-system) |
1316 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1317 | ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently | |
1318 | ;; prevents us from using pulseaudio | |
1319 | (inputs `(("ncurses" ,ncurses) | |
1320 | ("alsa" ,alsa-lib))) | |
1321 | (home-page "http://www.gnu.org/software/cursynth") | |
1322 | (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses") | |
1323 | (description "GNU cursynth is a polyphonic synthesizer that runs | |
1324 | graphically in the terminal. It is built on a full-featured subtractive | |
1325 | synthesis engine. Notes and parameter changes may be entered via MIDI or the | |
1326 | computer's keyboard.") | |
1327 | (license license:gpl3+))) | |
a763ce7d RW |
1328 | |
1329 | (define-public qtractor | |
1330 | (package | |
1331 | (name "qtractor") | |
457b5eb6 | 1332 | (version "0.7.7") |
a763ce7d RW |
1333 | (source (origin |
1334 | (method url-fetch) | |
1335 | (uri (string-append "http://downloads.sourceforge.net/qtractor/" | |
1336 | "qtractor-" version ".tar.gz")) | |
1337 | (sha256 | |
1338 | (base32 | |
457b5eb6 | 1339 | "0q8kvy1ynlg64v1w7jxix1rpq0lp2ixgb2y8cbbwxd2b28r3r2vl")))) |
a763ce7d RW |
1340 | (build-system gnu-build-system) |
1341 | (arguments `(#:tests? #f)) ; no "check" target | |
1342 | (inputs | |
1343 | `(("qt" ,qt) | |
1344 | ("alsa-lib" ,alsa-lib) | |
1345 | ("jack" ,jack-1) | |
1346 | ("libsndfile" ,libsndfile) | |
1347 | ("ladspa" ,ladspa) | |
1348 | ("lv2" ,lv2) | |
1349 | ("lilv" ,lilv) | |
1350 | ("suil" ,suil) | |
1351 | ("libsamplerate" ,libsamplerate) | |
1352 | ("libvorbis" ,libvorbis) | |
1353 | ("libmad" ,libmad) | |
1354 | ("rubberband" ,rubberband) | |
1355 | ("liblo" ,liblo) | |
1356 | ("zlib" ,zlib))) | |
1357 | (native-inputs | |
1358 | `(("pkg-config" ,pkg-config))) | |
1359 | (home-page "http://qtractor.sourceforge.net/") | |
1360 | (synopsis "Audio/MIDI multi-track sequencer") | |
1361 | (description | |
1362 | "Qtractor is an Audio/MIDI multi-track sequencer application. It uses | |
1363 | JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and | |
1364 | follows a traditional multi-track tape recorder control paradigm.") | |
1365 | (license license:gpl2+))) | |
aa0edd3f AM |
1366 | |
1367 | (define-public pianobar | |
1368 | (package | |
1369 | (name "pianobar") | |
1370 | (version "2015.11.22") | |
1371 | (source (origin | |
1372 | (method url-fetch) | |
1373 | (uri (string-append "https://github.com/PromyLOPh/" | |
1374 | name "/archive/" version ".tar.gz")) | |
1375 | (file-name (string-append name "-" version ".tar.gz")) | |
1376 | (sha256 | |
1377 | (base32 | |
1378 | "022df19bhxqvkhy0qy21xahba5s1fm17b13y0p9p9dnf2yl44wfv")))) | |
1379 | (build-system gnu-build-system) | |
1380 | (arguments | |
1381 | `(#:tests? #f ; no tests | |
1382 | #:make-flags (list "CC=gcc" "CFLAGS=-std=c99" | |
1383 | (string-append "PREFIX=" %output)) | |
1384 | #:phases (modify-phases %standard-phases | |
1385 | (delete 'configure)))) | |
1386 | (inputs | |
1387 | `(("ao" ,ao) | |
1388 | ("curl" ,curl) | |
1389 | ("libgcrypt" ,libgcrypt) | |
1390 | ("json-c" ,json-c) | |
1391 | ("ffmpeg" ,ffmpeg))) | |
1392 | (native-inputs | |
1393 | `(("pkg-config" ,pkg-config))) | |
1394 | (home-page "http://6xq.net/projects/pianobar/") | |
1395 | (synopsis "Console-based pandora.com player") | |
1396 | (description "pianobar is a console-based music player for the | |
1397 | personalized online radio pandora.com. It has configurable keys for playing | |
1398 | and managing stations, can be controlled remotely via fifo, and can run | |
1399 | event-based scripts for scrobbling, notifications, etc.") | |
1400 | (license license:expat))) | |
3f7a182d LF |
1401 | |
1402 | (define-public python-mutagen | |
1403 | (package | |
1404 | (name "python-mutagen") | |
1405 | (version "1.31") | |
1406 | (source (origin | |
1407 | (method url-fetch) | |
1408 | (uri (pypi-uri "mutagen" version)) | |
1409 | (sha256 | |
1410 | (base32 | |
1411 | "16fnnhspniac2i7qswxafawsh2x2a803hmc6bn9k1zl5fxq1380a")))) | |
1412 | (build-system python-build-system) | |
1413 | (home-page "https://bitbucket.org/lazka/mutagen") | |
1414 | (synopsis "Read and write audio tags") | |
1415 | (description "Mutagen is a Python module to handle audio metadata. It | |
1416 | supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg | |
1417 | Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions | |
1418 | of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read | |
1419 | Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and | |
1420 | APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg | |
1421 | streams on an individual packet/page level.") | |
1422 | (license license:gpl2))) ; "later version" never mentioned | |
1423 | ||
1424 | (define-public python2-mutagen | |
1425 | (package-with-python2 python-mutagen)) | |
8975de88 LF |
1426 | |
1427 | (define-public python-musicbrainzngs | |
1428 | (package | |
1429 | (name "python-musicbrainzngs") | |
1430 | (version "0.5") | |
1431 | (source (origin | |
1432 | (method url-fetch) | |
1433 | (uri (pypi-uri "musicbrainzngs" version)) | |
1434 | (sha256 | |
1435 | (base32 | |
1436 | "12f48llmdf5rkiqxcb70k2k1dmhm8byq0ifazvlrca8dfnmqh4r8")))) | |
1437 | (build-system python-build-system) | |
1438 | (home-page "https://python-musicbrainzngs.readthedocs.org/") | |
1439 | (synopsis "Python bindings for MusicBrainz NGS webservice") | |
1440 | (description "Musicbrainzngs implements Python bindings of the MusicBrainz | |
1441 | web service. This library can be used to retrieve music metadata from the | |
1442 | MusicBrainz database.") | |
1443 | ;; 'musicbrainzngs/compat.py' is ISC licensed. | |
1444 | (license (list license:bsd-2 license:isc)))) | |
1445 | ||
1446 | (define-public python2-musicbrainzngs | |
1447 | (package-with-python2 python-musicbrainzngs)) | |
e8fee648 LF |
1448 | |
1449 | (define-public python-pyechonest | |
1450 | (package | |
1451 | (name "python-pyechonest") | |
1452 | (version "9.0.0") | |
1453 | (source (origin | |
1454 | (method url-fetch) | |
1455 | (uri (pypi-uri "pyechonest" version)) | |
1456 | (sha256 | |
1457 | (base32 | |
1458 | "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x")))) | |
1459 | (build-system python-build-system) | |
1460 | (home-page "https://github.com/echonest/pyechonest") | |
1461 | (synopsis "Python interface to The Echo Nest APIs") | |
d3e3468f LF |
1462 | (description "Pyechonest is a Python library for the Echo Nest API. With |
1463 | Pyechonest you have Python access to the entire set of API methods including: | |
e8fee648 LF |
1464 | |
1465 | @enumerate | |
1466 | @item artist - search for artists by name, description, or attribute, and get | |
1467 | back detailed information about any artist including audio, similar artists, | |
1468 | blogs, familiarity, hotttnesss, news, reviews, urls and video. | |
1469 | @item song - search songs by artist, title, description, or attribute (tempo, | |
1470 | duration, etc) and get detailed information back about each song, such as | |
1471 | hotttnesss, audio_summary, or tracks. | |
1472 | @item track - upload a track to the Echo Nest and receive summary information | |
1473 | about the track including key, duration, mode, tempo, time signature along with | |
1474 | detailed track info including timbre, pitch, rhythm and loudness information. | |
1475 | @end enumerate\n") | |
1476 | (license license:bsd-3) | |
1477 | (properties `((python2-variant . ,(delay python2-pyechonest)))))) | |
1478 | ||
1479 | (define-public python2-pyechonest | |
1480 | (package (inherit (package-with-python2 | |
1481 | (strip-python2-variant python-pyechonest))) | |
1482 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
acd7351f LF |
1483 | |
1484 | (define-public python-pylast | |
1485 | (package | |
1486 | (name "python-pylast") | |
1487 | (version "1.5.1") | |
1488 | (source (origin | |
1489 | (method url-fetch) | |
1490 | (uri (pypi-uri "pylast" version)) | |
1491 | (sha256 | |
1492 | (base32 | |
1493 | "10znd9xr1vs2ix519jkz3ccm90zciaddcdr2w2wrrh2jyy3bc59a")))) | |
1494 | (build-system python-build-system) | |
1495 | (native-inputs | |
1496 | `(("python-coverage" ,python-coverage) | |
1497 | ("python-mock" ,python-mock) | |
1498 | ("python-pep8" ,python-pep8) | |
1499 | ("python-pytest" ,python-pytest) | |
1500 | ("python-pyflakes" ,python-pyflakes) | |
1501 | ("python-pyyaml" ,python-pyyaml))) | |
1502 | (propagated-inputs | |
1503 | `(("python-six" ,python-six))) | |
1504 | (home-page "https://github.com/pylast/pylast") | |
1505 | (synopsis "Python interface to Last.fm and Libre.fm") | |
1506 | (description "A Python interface to Last.fm and other API-compatible | |
1507 | websites such as Libre.fm.") | |
1508 | (license license:asl2.0) | |
1509 | (properties `((python2-variant . ,(delay python2-pylast)))))) | |
1510 | ||
1511 | (define-public python2-pylast | |
1512 | (let ((pylast (package-with-python2 | |
1513 | (strip-python2-variant python-pylast)))) | |
1514 | (package (inherit pylast) | |
1515 | (native-inputs | |
1516 | `(("python2-setuptools" ,python2-setuptools) | |
1517 | ,@(package-native-inputs pylast)))))) | |
3bf429af LF |
1518 | |
1519 | (define-public beets | |
1520 | (package | |
1521 | (name "beets") | |
23319ed6 | 1522 | (version "1.3.19") |
3bf429af LF |
1523 | (source (origin |
1524 | (method url-fetch) | |
23319ed6 | 1525 | (uri (pypi-uri "beets" version)) |
3bf429af LF |
1526 | (sha256 |
1527 | (base32 | |
23319ed6 | 1528 | "1vi1dh3fr554bnm8y9pjy09hblw18v6cl2jppzwlp72afri1w93b")))) |
3bf429af LF |
1529 | (build-system python-build-system) |
1530 | (arguments | |
1531 | `(#:python ,python-2 ; only Python 2 is supported | |
1532 | #:phases | |
1533 | (modify-phases %standard-phases | |
1534 | (add-after 'unpack 'set-HOME | |
36c2c8c8 LF |
1535 | (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp")))) |
1536 | (replace 'check | |
1537 | (lambda _ (zero? (system* "nosetests" "-v"))))))) | |
3bf429af LF |
1538 | (native-inputs |
1539 | `(("python2-beautifulsoup4" ,python2-beautifulsoup4) | |
1540 | ("python2-flask" ,python2-flask) | |
1541 | ("python2-setuptools" ,python2-setuptools) | |
1542 | ("python2-mock" ,python2-mock) | |
1543 | ("python2-mpd2" ,python2-mpd2) | |
36c2c8c8 | 1544 | ("python2-nose" ,python2-nose) |
3bf429af LF |
1545 | ("python2-pathlib" ,python2-pathlib) |
1546 | ("python2-pyxdg" ,python2-pyxdg) | |
1547 | ("python2-pyechonest" ,python2-pyechonest) | |
1548 | ("python2-pylast" ,python2-pylast) | |
1549 | ("python2-rarfile" ,python2-rarfile) | |
1550 | ("python2-responses" ,python2-responses))) | |
1551 | ;; TODO: Install optional plugins and dependencies. | |
b3470031 | 1552 | (inputs |
3bf429af LF |
1553 | `(("python2-enum34" ,python2-enum34) |
1554 | ("python2-jellyfish" ,python2-jellyfish) | |
1555 | ("python2-munkres" ,python2-munkres) | |
1556 | ("python2-musicbrainzngs" ,python2-musicbrainzngs) | |
1557 | ("python2-mutagen" ,python2-mutagen) | |
1558 | ("python2-pyyaml" ,python2-pyyaml) | |
1559 | ("python2-unidecode" ,python2-unidecode))) | |
1560 | (home-page "http://beets.io") | |
1561 | (synopsis "Music organizer") | |
1562 | (description "The purpose of beets is to get your music collection right | |
1563 | once and for all. It catalogs your collection, automatically improving its | |
1564 | metadata as it goes using the MusicBrainz database. Then it provides a variety | |
1565 | of tools for manipulating and accessing your music.") | |
1566 | (license license:expat))) | |
21d18113 KY |
1567 | |
1568 | (define-public milkytracker | |
1569 | (package | |
1570 | (name "milkytracker") | |
1571 | (version "0.90.86") | |
1572 | (source (origin | |
1573 | (method url-fetch) | |
1574 | (uri (string-append "http://milkytracker.org/files/" | |
1575 | name "-" version ".tar.bz2")) | |
1576 | (sha256 | |
1577 | (base32 | |
1578 | "1v9vp8vi24lkagfpr92c128whvakwgrm9pq2zf6ijpl5sh7014zb")))) | |
1579 | (build-system gnu-build-system) | |
1580 | (arguments | |
1581 | `(#:make-flags '("CXXFLAGS=-lasound"))) | |
1582 | (inputs | |
1583 | `(("alsa-lib" ,alsa-lib) | |
1584 | ("jack" ,jack-1) | |
1585 | ("sdl" ,sdl) | |
1586 | ("zlib" ,zlib))) | |
1587 | (native-inputs | |
1588 | `(("pkg-config" ,pkg-config))) | |
1589 | (synopsis "Music tracker for working with .MOD/.XM module files") | |
1590 | (description "MilkyTracker is a music application for creating .MOD and .XM | |
1591 | module files. It attempts to recreate the module replay and user experience of | |
1592 | the popular DOS program Fasttracker II, with special playback modes available | |
1593 | for improved Amiga ProTracker 2/3 compatibility.") | |
1594 | (home-page "http://milkytracker.org/") | |
1595 | ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later. | |
1596 | (license (list license:bsd-3 license:gpl3+)))) | |
13416a10 KY |
1597 | |
1598 | (define-public moc | |
1599 | (package | |
1600 | (name "moc") | |
1601 | (version "2.5.1") | |
1602 | (source (origin | |
1603 | (method url-fetch) | |
1604 | (uri (string-append "http://ftp.daper.net/pub/soft/" | |
1605 | name "/stable/" | |
1606 | name "-" version ".tar.bz2")) | |
1607 | (sha256 | |
1608 | (base32 | |
1609 | "1wn4za08z64bhsgfhr9c0crfyvy8c3b6a337wx7gz19am5srqh8v")))) | |
1610 | (build-system gnu-build-system) | |
1611 | (inputs | |
1612 | `(("alsa-lib" ,alsa-lib) | |
1613 | ("curl" ,curl) | |
1614 | ("faad2" ,faad2) | |
1615 | ("ffmpeg" ,ffmpeg) | |
1616 | ("file" ,file) | |
1617 | ("jack" ,jack-1) | |
1618 | ("libid3tag" ,libid3tag) | |
1619 | ("libltdl" ,libltdl) | |
1620 | ("libmodplug" ,libmodplug) | |
1621 | ("libmpcdec" ,libmpcdec) | |
1622 | ("libmad" ,libmad) | |
1623 | ("ncurses" ,ncurses) | |
1624 | ("openssl" ,openssl) | |
1625 | ("sasl" ,cyrus-sasl) | |
1626 | ("speex" ,speex) | |
1627 | ("taglib" ,taglib) | |
1628 | ("wavpack" ,wavpack) | |
1629 | ("zlib" ,zlib))) | |
1630 | (native-inputs | |
1631 | `(("pkg-config" ,pkg-config))) | |
1632 | (synopsis "Console audio player designed to be powerful and easy to use") | |
1633 | (description | |
1634 | "Music on Console is a console audio player that supports many file | |
1635 | formats, including most audio formats recognized by FFMpeg.") | |
1636 | (home-page "http://moc.daper.net") | |
1637 | (license license:gpl2+))) | |
6d3ef286 JF |
1638 | |
1639 | (define-public midicsv | |
1640 | (package | |
1641 | (name "midicsv") | |
1642 | (version "1.1") | |
1643 | (source (origin | |
1644 | (method url-fetch) | |
1645 | (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/" | |
1646 | name "-" version ".tar.gz")) | |
1647 | (sha256 | |
1648 | (base32 | |
1649 | "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw")))) | |
1650 | (build-system gnu-build-system) | |
1651 | (arguments | |
1652 | `(#:phases (modify-phases %standard-phases (delete 'configure)) | |
1653 | #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output)))) | |
1654 | (synopsis "Convert MIDI files to and from CSV") | |
1655 | (description | |
1656 | "Midicsv reads a standard MIDI file and decodes it into a comma-separated | |
1657 | value file (CSV), which preserves all the information in the MIDI file. The | |
1658 | ASCII CSV file may be loaded into a spreadsheet or database application, or | |
1659 | processed by a program to transform the MIDI data (for example, to key | |
1660 | transpose a composition or extract a track from a multi-track sequence). A | |
1661 | CSV file in the format created by midicsv may be converted back into a | |
1662 | standard MIDI file with the csvmidi program.") | |
1663 | (home-page "http://www.fourmilab.ch/webtools/midicsv/") | |
1664 | (license license:public-domain))) |