gnu: yoshimi: Update to 1.5.8.
[jackhill/guix/guix.git] / gnu / packages / music.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
9 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017, 2018 Pierre Langlois <pierre.langlois@gmx.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2018 nee <nee.git@hidamari.blue>
18 ;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
19 ;;;
20 ;;; This file is part of GNU Guix.
21 ;;;
22 ;;; GNU Guix is free software; you can redistribute it and/or modify it
23 ;;; under the terms of the GNU General Public License as published by
24 ;;; the Free Software Foundation; either version 3 of the License, or (at
25 ;;; your option) any later version.
26 ;;;
27 ;;; GNU Guix is distributed in the hope that it will be useful, but
28 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
29 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 ;;; GNU General Public License for more details.
31 ;;;
32 ;;; You should have received a copy of the GNU General Public License
33 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34
35 (define-module (gnu packages music)
36 #:use-module (guix utils)
37 #:use-module (guix packages)
38 #:use-module (guix download)
39 #:use-module (guix git-download)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system ant)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system python)
45 #:use-module (guix build-system scons)
46 #:use-module (guix build-system glib-or-gtk)
47 #:use-module (guix build-system waf)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages algebra)
50 #:use-module (gnu packages apr)
51 #:use-module (gnu packages audio)
52 #:use-module (gnu packages autotools)
53 #:use-module (gnu packages backup)
54 #:use-module (gnu packages base) ;libbdf
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages bison)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages cdrom)
59 #:use-module (gnu packages code)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages cmake)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages crypto)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages cyrus-sasl)
66 #:use-module (gnu packages databases)
67 #:use-module (gnu packages datastructures)
68 #:use-module (gnu packages docbook)
69 #:use-module (gnu packages documentation)
70 #:use-module (gnu packages emacs)
71 #:use-module (gnu packages file)
72 #:use-module (gnu packages flex)
73 #:use-module (gnu packages fltk)
74 #:use-module (gnu packages fonts)
75 #:use-module (gnu packages fontutils)
76 #:use-module (gnu packages freedesktop)
77 #:use-module (gnu packages gcc)
78 #:use-module (gnu packages gnupg)
79 #:use-module (gnu packages gettext)
80 #:use-module (gnu packages ghostscript)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages gnome)
84 #:use-module (gnu packages graphics)
85 #:use-module (gnu packages gstreamer)
86 #:use-module (gnu packages gtk)
87 #:use-module (gnu packages guile)
88 #:use-module (gnu packages image)
89 #:use-module (gnu packages imagemagick)
90 #:use-module (gnu packages java)
91 #:use-module (gnu packages libffi)
92 #:use-module (gnu packages libusb)
93 #:use-module (gnu packages linux) ; for alsa-utils
94 #:use-module (gnu packages lirc)
95 #:use-module (gnu packages llvm)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages mp3)
98 #:use-module (gnu packages mpd)
99 #:use-module (gnu packages ncurses)
100 #:use-module (gnu packages netpbm)
101 #:use-module (gnu packages pcre)
102 #:use-module (gnu packages pdf)
103 #:use-module (gnu packages perl)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages protobuf)
106 #:use-module (gnu packages pulseaudio) ;libsndfile
107 #:use-module (gnu packages python)
108 #:use-module (gnu packages python-web)
109 #:use-module (gnu packages qt)
110 #:use-module (gnu packages rdf)
111 #:use-module (gnu packages readline)
112 #:use-module (gnu packages rsync)
113 #:use-module (gnu packages sdl)
114 #:use-module (gnu packages tcl)
115 #:use-module (gnu packages texinfo)
116 #:use-module (gnu packages tex)
117 #:use-module (gnu packages tls)
118 #:use-module (gnu packages version-control)
119 #:use-module (gnu packages video)
120 #:use-module (gnu packages web)
121 #:use-module (gnu packages wxwidgets)
122 #:use-module (gnu packages xml)
123 #:use-module (gnu packages xorg)
124 #:use-module (gnu packages xiph)
125 #:use-module ((srfi srfi-1) #:select (last)))
126
127 (define-public aria-maestosa
128 (package
129 (name "aria-maestosa")
130 (version "1.4.13")
131 (source (origin
132 (method url-fetch)
133 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
134 version "/AriaSrc-" version ".tar.bz2"))
135 (sha256
136 (base32
137 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
138 (build-system scons-build-system)
139 (arguments
140 `(#:tests? #f ;no tests
141 #:scons-flags
142 (list (string-append "prefix=" (assoc-ref %outputs "out")))
143 #:scons ,scons-python2
144 #:phases
145 (modify-phases %standard-phases
146 (delete 'configure)
147 (add-after 'unpack 'scons-propagate-environment
148 (lambda _
149 ;; By design, SCons does not, by default, propagate
150 ;; environment variables to subprocesses. See:
151 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
152 ;; Here, we modify the SConstruct file to arrange for
153 ;; environment variables to be propagated.
154 (substitute* "SConstruct"
155 (("env = Environment\\(\\)")
156 "env = Environment(ENV=os.environ)")
157 ;; Scons errors out when copying subdirectories from Resources,
158 ;; so we move them instead.
159 (("Copy") "Move")
160 ;; We move the "score" and "Documentation" directories at once,
161 ;; so we have to ignore files contained therein.
162 (("if \".svn\" in file" line)
163 (string-append line
164 " or \"score/\" in file"
165 " or \"Documentation/\" in file")))
166 #t))
167 (add-after 'install 'fix-directory-permissions
168 (lambda* (#:key outputs #:allow-other-keys)
169 (let ((out (assoc-ref outputs "out")))
170 (chmod (string-append out "/share/Aria/Documentation") #o555)
171 (chmod (string-append out "/share/Aria/score") #o555)
172 #t))))))
173 (inputs
174 `(("wxwidgets" ,wxwidgets)
175 ("glib" ,glib)
176 ("alsa-lib" ,alsa-lib)))
177 (native-inputs
178 `(("pkg-config" ,pkg-config)))
179 (home-page "http://ariamaestosa.sourceforge.net/")
180 (synopsis "MIDI sequencer and editor")
181 (description
182 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
183 and play MIDI files with a few clicks in a user-friendly interface offering
184 score, keyboard, guitar, drum and controller views.")
185 (license license:gpl3+)))
186
187 ;; We don't use the latest release because it depends on Qt4. Instead we
188 ;; download the sources from the tip of the "qt5" branch.
189 (define-public clementine
190 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
191 (revision "2"))
192 (package
193 (name "clementine")
194 (version (git-version "1.3.1" revision commit))
195 (source (origin
196 (method git-fetch)
197 (uri (git-reference
198 (url "https://github.com/clementine-player/Clementine.git")
199 (commit commit)))
200 (file-name (git-file-name name version))
201 (sha256
202 (base32
203 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
204 (modules '((guix build utils)))
205 (snippet
206 '(for-each
207 (lambda (dir)
208 (delete-file-recursively
209 (string-append "3rdparty/" dir)))
210 (list
211 ;; TODO: The following dependencies are still bundled:
212 ;; - "qxt": Appears to be unmaintained upstream.
213 ;; - "qsqlite"
214 ;; - "qtsingleapplication"
215 ;; - "qocoa"
216 ;; - "qtiocompressor"
217 ;; - "gmock": The tests crash when using our googletest
218 ;; package instead of the bundled gmock.
219 "SPMediaKeyTap"
220 "fancytabwidget"
221 "google-breakpad"
222 "libmygpo-qt"
223 "libmygpo-qt5"
224 "libprojectm"
225 "qtwin"
226 "sha2" ;; Replaced by openssl.
227 "taglib"
228 "tinysvcmdns")))
229 (patches (search-patches "clementine-use-openssl.patch"
230 "clementine-remove-crypto++-dependency.patch"))))
231 (build-system cmake-build-system)
232 (arguments
233 '(#:test-target "clementine_test"
234 #:configure-flags
235 (list ;; Requires unpackaged "projectm"
236 "-DENABLE_VISUALISATIONS=OFF"
237 ;; Otherwise it may try to download a non-free library at run-time.
238 ;; TODO In an origin snippet, remove the code that performs the
239 ;; download.
240 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
241 "-DUSE_SYSTEM_SHA2=TRUE")
242 #:phases
243 (modify-phases %standard-phases
244 (add-after 'install 'wrap-program
245 (lambda* (#:key inputs outputs #:allow-other-keys)
246 (let ((out (assoc-ref outputs "out"))
247 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
248 (wrap-program (string-append out "/bin/clementine")
249 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
250 #t))))))
251 (native-inputs
252 `(("gettext" ,gettext-minimal)
253 ("pkg-config" ,pkg-config)
254 ("qtlinguist" ,qttools)))
255 (inputs
256 `(("boost" ,boost)
257 ("chromaprint" ,chromaprint)
258 ("fftw" ,fftw)
259 ("glib" ,glib)
260 ("glu" ,glu)
261 ("gstreamer" ,gstreamer)
262 ("gst-plugins-base" ,gst-plugins-base)
263 ("libcdio" ,libcdio)
264 ("libmygpo-qt" ,libmygpo-qt)
265 ;; TODO: Package libgpod.
266 ("libmtp" ,libmtp)
267 ("libxml2" ,libxml2)
268 ("openssl" ,openssl)
269 ("protobuf" ,protobuf)
270 ("pulseaudio" ,pulseaudio)
271 ("qtbase" ,qtbase)
272 ("qtx11extras" ,qtx11extras)
273 ("qtwebkit" ,qtwebkit)
274 ("sqlite" ,sqlite-with-fts3)
275 ("sparsehash" ,sparsehash)
276 ("taglib" ,taglib)))
277 (home-page "http://clementine-player.org")
278 (synopsis "Music player and library organizer")
279 (description "Clementine is a multiplatform music player. It is inspired
280 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
281 playing your music.")
282 (license (list
283 ;; clementine and qtiocompressor are under GPLv3.
284 license:gpl3+
285 ;; gmock is under BSD-3.
286 license:bsd-3
287 ;; qxt is under CPL1.0.
288 license:cpl1.0
289 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
290 license:lgpl2.1+
291 ;; qocoa is under MIT and CC by-sa for the icons.
292 license:cc-by-sa3.0)))))
293
294 (define-public cmus
295 (package
296 (name "cmus")
297 (version "2.7.1")
298 (source (origin
299 (method url-fetch)
300 (uri (string-append
301 "https://github.com/" name "/" name "/archive/v"
302 version ".tar.gz"))
303 (file-name (string-append name "-" version ".tar.gz"))
304 (sha256
305 (base32
306 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
307 (build-system gnu-build-system)
308 (arguments
309 `(#:tests? #f ; cmus does not include tests
310 #:phases
311 (modify-phases %standard-phases
312 (replace
313 'configure
314 (lambda* (#:key outputs #:allow-other-keys)
315 (let ((out (assoc-ref outputs "out")))
316
317 ;; It's an idiosyncratic configure script that doesn't
318 ;; understand --prefix=..; it wants prefix=.. instead.
319 (zero?
320 (system* "./configure"
321 (string-append "prefix=" out)))))))))
322 ;; TODO: cmus optionally supports the following formats, which haven't yet
323 ;; been added to Guix:
324 ;;
325 ;; - Roar, libroar
326 ;;
327 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
328 ;; Guix. See <http://sourceforge.net/projects/discid/>
329 (native-inputs
330 `(("pkg-config" ,pkg-config)))
331 (inputs
332 `(("alsa-lib" ,alsa-lib)
333 ("ao" ,ao)
334 ("ffmpeg" ,ffmpeg)
335 ("flac" ,flac)
336 ("jack" ,jack-1)
337 ("libcddb" ,libcddb)
338 ("libcdio-paranoia" ,libcdio-paranoia)
339 ("libcue" ,libcue)
340 ("libmad" ,libmad)
341 ("libmodplug" ,libmodplug)
342 ("libmpcdec" ,libmpcdec)
343 ("libsamplerate" ,libsamplerate)
344 ("libvorbis" ,libvorbis)
345 ("ncurses" ,ncurses)
346 ("opusfile" ,opusfile)
347 ("pulseaudio" ,pulseaudio)
348 ("wavpack" ,wavpack)))
349 (home-page "https://cmus.github.io/")
350 (synopsis "Small console music player")
351 (description "Cmus is a small and fast console music player. It supports
352 many input formats and provides a customisable Vi-style user interface.")
353 (license license:gpl2+)))
354
355 (define-public denemo
356 (package
357 (name "denemo")
358 (version "2.1")
359 (source (origin
360 (method url-fetch)
361 (uri (string-append "mirror://gnu/denemo/denemo-"
362 version ".tar.gz"))
363 (sha256
364 (base32
365 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
366 (build-system gnu-build-system)
367 (arguments
368 `(#:phases
369 (modify-phases %standard-phases
370 (replace 'check
371 ;; Denemo's documentation says to use this command to run its
372 ;; testsuite.
373 (lambda _
374 (zero? (system* "make" "-C" "tests" "check"))))
375 (add-before 'build 'set-lilypond
376 ;; This phase sets the default path for lilypond to its current
377 ;; location in the store.
378 (lambda* (#:key inputs #:allow-other-keys)
379 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
380 "/bin/lilypond")))
381 (substitute* "src/core/prefops.c"
382 (("g_string_new \\(\"lilypond\"\\);")
383 (string-append "g_string_new (\""
384 lilypond
385 "\");"))))
386 #t))
387 (add-after 'install 'correct-filename
388 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
389 ;; the C locale, expecting file names to be ASCII encoded. This
390 ;; phase renames a filename with a Unicode character in it to meet
391 ;; the aforementioned condition.
392 (lambda* (#:key outputs #:allow-other-keys)
393 (let* ((out (assoc-ref outputs "out")))
394 (chdir (string-append
395 out
396 "/share/denemo/templates/instruments/woodwind"))
397 (rename-file "Clarinet in B♭.denemo"
398 "Clarinet in Bb.denemo"))
399 #t)))))
400 (native-inputs
401 `(("glib:bin" ,glib "bin") ; for gtester
402 ("pkg-config" ,pkg-config)))
403 (inputs
404 `(("alsa-lib" ,alsa-lib)
405 ("aubio" ,aubio)
406 ("evince" ,evince)
407 ("fftw" ,fftw)
408 ("fluidsynth" ,fluidsynth)
409 ("glib" ,glib)
410 ("gtk+" ,gtk+)
411 ("gtk-doc" ,gtk-doc)
412 ("gtksourceview" ,gtksourceview)
413 ("guile" ,guile-2.0)
414 ("intltool" ,intltool)
415 ("librsvg" ,librsvg)
416 ("libsndfile" ,libsndfile)
417 ("libtool" ,libtool)
418 ("libxml2" ,libxml2)
419 ("lilypond" ,lilypond)
420 ("portaudio" ,portaudio)
421 ("portmidi" ,portmidi)
422 ("rubberband" ,rubberband)))
423 (synopsis "Graphical music notation, front-end to GNU Lilypond")
424 (description
425 "GNU Denemo is a music notation editor that provides a convenient
426 interface to the powerful music engraving program Lilypond. Music can be
427 typed in using the computer keyboard, played in using a MIDI keyboard, or
428 even input via a microphone connected to the sound card. The final product
429 is publication-quality music notation that is continuously generated in the
430 background while you work.")
431 (home-page "http://www.denemo.org")
432 (license license:gpl3+)))
433
434 (define-public hydrogen
435 (package
436 (name "hydrogen")
437 (version "1.0.0-beta1")
438 (source (origin
439 (method git-fetch)
440 (uri (git-reference
441 (url "https://github.com/hydrogen-music/hydrogen.git")
442 (commit version)))
443 (file-name (string-append name "-" version "-checkout"))
444 (sha256
445 (base32
446 "0nv83l70j5bjz2wd6n3a8cq3bmgrvdvg6g2hjhc1g5h6xnbqsh9x"))))
447 (build-system cmake-build-system)
448 (arguments
449 `(#:test-target "tests"
450 #:phases
451 (modify-phases %standard-phases
452 (add-after 'unpack 'fix-data-directory
453 (lambda* (#:key outputs #:allow-other-keys)
454 (substitute* "CMakeLists.txt"
455 (("/usr/share/pixmaps")
456 (string-append (assoc-ref outputs "out")
457 "/share/pixmaps")))
458 #t)))))
459 (native-inputs
460 `(("cppunit" ,cppunit)
461 ("pkg-config" ,pkg-config)))
462 (inputs
463 `(("alsa-lib" ,alsa-lib)
464 ("jack" ,jack-1)
465 ;; ("ladspa" ,ladspa) ; cannot find during configure
466 ("lash" ,lash)
467 ("libarchive" ,libarchive)
468 ("libsndfile" ,libsndfile)
469 ("libtar" ,libtar)
470 ("lrdf" ,lrdf)
471 ("qtbase" ,qtbase)
472 ("qtxmlpatterns" ,qtxmlpatterns)
473 ("zlib" ,zlib)))
474 (home-page "http://www.hydrogen-music.org")
475 (synopsis "Drum machine")
476 (description
477 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
478 enable professional yet simple and intuitive pattern-based drum programming.")
479 (license license:gpl2+)))
480
481 (define-public easytag
482 (package
483 (name "easytag")
484 (version "2.4.3")
485 (source (origin
486 (method url-fetch)
487 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
488 version ".tar.xz"))
489 (sha256
490 (base32
491 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
492 (build-system glib-or-gtk-build-system)
493 (native-inputs
494 `(("desktop-file-utils" ,desktop-file-utils)
495 ("glib" ,glib "bin")
496 ("intltool" ,intltool)
497 ("itstool" ,itstool)
498 ("pkg-config" ,pkg-config)
499 ("xmllint" ,libxml2)))
500 (inputs
501 `(("flac" ,flac)
502 ("gtk+" ,gtk+)
503 ("id3lib" ,id3lib)
504 ("libid3tag" ,libid3tag)
505 ("libvorbis" ,libvorbis)
506 ("opusfile" ,opusfile)
507 ("speex" ,speex)
508 ("taglib" ,taglib)
509 ("wavpack" ,wavpack)
510 ("yelp" ,yelp)))
511 (arguments
512 '(#:phases
513 (modify-phases %standard-phases
514 (add-before 'configure 'configure-libid3tag
515 (lambda* (#:key inputs #:allow-other-keys)
516 ;; libid3tag does not provide a .pc file and EasyTAG's configure
517 ;; script healivy relies on pkg-config. Providing a temporary
518 ;; local .pc file is easier than patching the configure script.
519 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
520 (mkdir-p "pkgconfig")
521 (with-output-to-file
522 "pkgconfig/id3tag.pc"
523 (lambda _
524 (format #t
525 "prefix=~@*~a~@
526 libdir=${prefix}/lib~@
527 includedir=${prefix}/include~@
528 Libs: -L${libdir} -lid3tag -lz~@
529 Cflags: -I${includedir}~%"
530 libid3tag)))
531 (setenv "PKG_CONFIG_PATH"
532 (string-append (getenv "PKG_CONFIG_PATH")
533 ":" (getcwd) "/pkgconfig")))))
534 (add-after 'unpack 'patch-makefile
535 (lambda _
536 (substitute* "Makefile.in"
537 ;; The Makefile generates a test-desktop-file-validate.sh
538 ;; script with /bin/sh hard-coded.
539 (("/bin/sh") (which "sh"))
540 ;; Don't create 'icon-theme.cache'.
541 (("gtk-update-icon-cache") "true")))))))
542 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
543 (synopsis "Simple application for viewing and editing tags in audio files")
544 (description
545 "EasyTAG is an application for viewing and editing tags in audio files.
546 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
547 MusePack, Monkey's Audio, and WavPack files.")
548 (license license:gpl2+)))
549
550 (define-public extempore
551 (package
552 (name "extempore")
553 (version "0.7.0")
554 (source (origin
555 (method url-fetch)
556 (uri (string-append
557 "https://github.com/digego/extempore/archive/"
558 version ".tar.gz"))
559 (sha256
560 (base32
561 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
562 (file-name (string-append name "-" version ".tar.gz"))))
563 (build-system cmake-build-system)
564 (arguments
565 `(;; The default target also includes ahead-of-time compilation of the
566 ;; standard libraries. However, during the "install" phase this would
567 ;; happen *again* for unknown reasons. Hence we only build the
568 ;; extempore executable during the build phase.
569 #:make-flags '("extempore")
570 #:configure-flags '("-DJACK=ON"
571 ;; We want to distribute.
572 "-DIN_TREE=OFF"
573 ;; Don't download any dependencies.
574 "-DBUILD_DEPS=OFF")
575 #:modules ((ice-9 match)
576 (guix build cmake-build-system)
577 (guix build utils))
578 #:phases
579 (modify-phases %standard-phases
580 (add-after 'unpack 'patch-directories
581 (lambda* (#:key outputs #:allow-other-keys)
582 ;; Rewrite default path to runtime directory
583 (substitute* "src/Extempore.cpp"
584 (("runtimedir \\+= \"runtime\"")
585 (string-append "runtimedir = \""
586 (assoc-ref outputs "out")
587 "/lib/extempore/runtime\"")))
588 (substitute* "extras/extempore.el"
589 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
590 (string-append "(runtime-directory \""
591 (assoc-ref outputs "out")
592 "/lib/extempore/runtime"
593 "\")")))
594 #t))
595 (add-after 'unpack 'link-with-additional-libs
596 (lambda _
597 ;; The executable must be linked with libffi and zlib.
598 (substitute* "CMakeLists.txt"
599 (("add_dependencies\\(aot_extended extended_deps\\)") "")
600 (("target_link_libraries\\(extempore PRIVATE dl" line)
601 (string-append line " ffi z")))
602 #t))
603 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
604 ;; "Compiler Error could not bind _nvgLinearGradient"
605 (add-after 'unpack 'disable-nanovg
606 (lambda _
607 (substitute* "CMakeLists.txt"
608 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
609 #t))
610 ;; FIXME: All examples that are used as tests segfault for some
611 ;; unknown reason.
612 (add-after 'unpack 'disable-broken-tests
613 (lambda _
614 (substitute* "CMakeLists.txt"
615 (("extempore_add_example_as_test\\(.*") ""))
616 #t))
617 (add-after 'unpack 'hardcode-external-lib-paths
618 (lambda* (#:key inputs #:allow-other-keys)
619 (use-modules (ice-9 match))
620 (for-each
621 (match-lambda
622 ((file-name lib pkg-name)
623 (substitute* (string-append "libs/external/" file-name ".xtm")
624 ((lib) (string-append (assoc-ref inputs pkg-name)
625 "/lib/" lib)))))
626 '(("assimp" "libassimp.so" "assimp")
627 ("portmidi" "libportmidi.so" "portmidi")
628 ("sndfile" "libsndfile.so" "libsndfile")
629 ("fft" "libkiss_fft.so" "kiss-fft")
630 ("stb_image" "libstb_image.so" "stb-image")
631 ("nanovg" "libnanovg.so" "nanovg")
632 ("glext" "libGL.so" "mesa")
633 ("glfw3" "libglfw.so" "glfw")
634 ("gl/glcore-directbind" "libGL.so" "mesa")
635 ("gl/glcompat-directbind" "libGL.so" "mesa")))
636 #t))
637 (add-after 'unpack 'use-own-llvm
638 (lambda* (#:key inputs #:allow-other-keys)
639 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
640 ;; Our LLVM builds shared libraries, so Extempore should use
641 ;; those.
642 (substitute* "CMakeLists.txt"
643 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
644 #t))
645 (add-after 'unpack 'fix-aot-compilation
646 (lambda* (#:key outputs #:allow-other-keys)
647 (substitute* "CMakeLists.txt"
648 ;; EXT_SHARE_DIR does not exist before installation, so the
649 ;; working directory should be the source directory instead.
650 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
651 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
652 ;; Extempore needs to be told where the runtime is to be found.
653 ;; While we're at it we disable automatic tuning for a specific
654 ;; CPU to make binary substitution possible.
655 (("COMMAND extempore" prefix)
656 (string-append prefix " --sharedir " (getcwd)
657 " --mcpu=generic --attr=none")))
658 #t)))))
659 (inputs
660 `(("llvm" ,llvm-for-extempore)
661 ("libffi" ,libffi)
662 ("jack" ,jack-1)
663 ("libsndfile" ,libsndfile)
664 ("glfw" ,glfw)
665 ("apr" ,apr)
666 ("stb-image" ,stb-image-for-extempore)
667 ("kiss-fft" ,kiss-fft-for-extempore)
668 ("nanovg" ,nanovg-for-extempore)
669 ("portmidi" ,portmidi-for-extempore)
670 ("assimp" ,assimp)
671 ("alsa-lib" ,alsa-lib)
672 ("portaudio" ,portaudio)
673 ("mesa" ,mesa)
674 ("pcre" ,pcre)
675 ("zlib" ,zlib)))
676 (native-inputs
677 `(("perl" ,perl)
678 ("emacs" ,emacs-no-x)))
679 ;; Extempore refuses to build on architectures other than x86_64
680 (supported-systems '("x86_64-linux"))
681 (home-page "http://digego.github.io/extempore/")
682 (synopsis "Programming environment for live coding of multimedia")
683 (description
684 "Extempore is a programming language and runtime environment designed
685 with live programming in mind. It supports interactive programming in a REPL
686 style, compiling and binding code just-in-time. Although Extempore has its
687 roots in 'live coding' of audiovisual media art, it is suitable for any task
688 domain where dynamic run-time modifiability and good numerical performance are
689 required. Extempore also has strong timing and concurrency semantics, which
690 are helpful when working in problem spaces where timing is important (such as
691 audio and video).")
692 (license license:bsd-2)))
693
694 (define-public klick
695 (package
696 (name "klick")
697 (version "0.12.2")
698 (source (origin
699 (method url-fetch)
700 (uri (string-append "http://das.nasophon.de/download/klick-"
701 version ".tar.gz"))
702 (sha256
703 (base32
704 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
705 (build-system scons-build-system)
706 (arguments
707 `(#:scons-flags (list (string-append "PREFIX=" %output))
708 #:tests? #f)) ;no "check" target
709 (inputs
710 `(("boost" ,boost)
711 ("jack" ,jack-1)
712 ("libsndfile" ,libsndfile)
713 ("libsamplerate" ,libsamplerate)
714 ("liblo" ,liblo)
715 ("rubberband" ,rubberband)))
716 (native-inputs
717 `(("pkg-config" ,pkg-config)))
718 (home-page "http://das.nasophon.de/klick/")
719 (synopsis "Metronome for JACK")
720 (description
721 "klick is an advanced command-line based metronome for JACK. It allows
722 you to define complex tempo maps for entire songs or performances.")
723 (license license:gpl2+)))
724
725 (define-public gtklick
726 (package
727 (name "gtklick")
728 (version "0.6.4")
729 (source (origin
730 (method url-fetch)
731 (uri (string-append "http://das.nasophon.de/download/gtklick-"
732 version ".tar.gz"))
733 (sha256
734 (base32
735 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
736 (build-system python-build-system)
737 (arguments
738 `(#:tests? #f ; no tests
739 #:python ,python-2
740 #:phases
741 (modify-phases %standard-phases
742 (add-before 'build 'add-sitedirs
743 ;; .pth files are not automatically interpreted unless the
744 ;; directories containing them are added as "sites". The directories
745 ;; are then added to those in the PYTHONPATH. This is required for
746 ;; the operation of pygtk.
747 (lambda _
748 (substitute* "gtklick/gtklick.py"
749 (("import pygtk")
750 "import pygtk, site, sys
751 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
752 (add-after 'unpack 'inject-store-path-to-klick
753 (lambda* (#:key inputs #:allow-other-keys)
754 (substitute* "gtklick/klick_backend.py"
755 (("KLICK_PATH = 'klick'")
756 (string-append "KLICK_PATH = '"
757 (assoc-ref inputs "klick")
758 "/bin/klick'")))
759 #t)))))
760 (inputs
761 `(("klick" ,klick)
762 ("python2-pyliblo" ,python2-pyliblo)
763 ("python2-pygtk" ,python2-pygtk)))
764 (native-inputs
765 `(("gettext" ,gettext-minimal)))
766 (home-page "http://das.nasophon.de/gtklick/")
767 (synopsis "Simple metronome with an easy-to-use graphical interface")
768 (description
769 "Gtklick is a simple metronome with an easy-to-use graphical user
770 interface. It is implemented as a frontend to @code{klick}.")
771 (license license:gpl2+)))
772
773 (define-public libgme
774 (package
775 (name "libgme")
776 (version "0.6.1")
777 (source (origin
778 (method url-fetch)
779 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
780 "downloads/game-music-emu-" version
781 ".tar.bz2"))
782 (sha256
783 (base32
784 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
785 (build-system cmake-build-system)
786 (arguments
787 '(#:tests? #f)) ; no check target
788 (home-page "https://bitbucket.org/mpyne/game-music-emu")
789 (synopsis "Video game music file playback library")
790 (description
791 "Game-music-emu is a collection of video game music file emulators that
792 support the following formats and systems:
793 @table @code
794 @item AY
795 ZX Spectrum/Asmtrad CPC
796 @item GBS
797 Nintendo Game Boy
798 @item GYM
799 Sega Genesis/Mega Drive
800 @item HES
801 NEC TurboGrafx-16/PC Engine
802 @item KSS
803 MSX Home Computer/other Z80 systems (doesn't support FM sound)
804 @item NSF/NSFE
805 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
806 @item SAP
807 Atari systems using POKEY sound chip
808 @item SPC
809 Super Nintendo/Super Famicom
810 @item VGM/VGZ
811 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
812 @end table")
813 (license (list license:lgpl2.1+
814 ;; demo and player directories are under the Expat license
815 license:expat))))
816
817 (define-public lilypond
818 (package
819 (name "lilypond")
820 (version "2.19.80")
821 (source (origin
822 (method url-fetch)
823 (uri (string-append
824 "http://download.linuxaudio.org/lilypond/sources/v"
825 (version-major+minor version) "/"
826 name "-" version ".tar.gz"))
827 (sha256
828 (base32
829 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
830 (build-system gnu-build-system)
831 (arguments
832 `(#:tests? #f ; out-test/collated-files.html fails
833 #:out-of-source? #t
834 #:make-flags '("conf=www") ;to generate images for info manuals
835 #:configure-flags
836 (list "CONFIGURATION=www"
837 (string-append "--with-texgyre-dir="
838 (assoc-ref %build-inputs "font-tex-gyre")
839 "/share/fonts/opentype/"))
840 #:phases
841 (modify-phases %standard-phases
842 (add-after 'unpack 'use-texlive-union
843 (lambda _
844 ;; FIXME: fonts are not found and have to be generated in HOME.
845 (setenv "HOME" "/tmp")
846 ;; The test for the "lh" package fails, even though it is among
847 ;; the inputs.
848 (substitute* "configure"
849 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
850 #t))
851 (add-after 'unpack 'fix-path-references
852 (lambda _
853 (substitute* "scm/backend-library.scm"
854 (("\\(search-executable '\\(\"gs\"\\)\\)")
855 (string-append "\"" (which "gs") "\""))
856 (("\"/bin/sh\"")
857 (string-append "\"" (which "sh") "\"")))
858 #t))
859 (add-before 'configure 'prepare-configuration
860 (lambda _
861 (substitute* "configure"
862 (("SHELL=/bin/sh") "SHELL=sh")
863 ;; When checking the fontforge version do not consider the
864 ;; version string that's part of the directory.
865 (("head -n") "tail -n")
866 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
867 (("20110222") "19700101"))
868 (setenv "out" "www")
869 (setenv "conf" "www")
870 #t))
871 (add-after 'install 'install-info
872 (lambda _
873 (zero? (system* "make"
874 "-j" (number->string (parallel-job-count))
875 "conf=www" "install-info")))))))
876 (inputs
877 `(("guile" ,guile-1.8)
878 ("font-dejavu" ,font-dejavu)
879 ("font-tex-gyre" ,font-tex-gyre)
880 ("fontconfig" ,fontconfig)
881 ("freetype" ,freetype)
882 ("ghostscript" ,ghostscript)
883 ("pango" ,pango)
884 ("python" ,python-2)))
885 (native-inputs
886 `(("bison" ,bison)
887 ("perl" ,perl)
888 ("flex" ,flex)
889 ("fontforge" ,fontforge)
890 ("dblatex" ,dblatex)
891 ("gettext" ,gettext-minimal)
892 ("imagemagick" ,imagemagick)
893 ("netpbm" ,netpbm) ;for pngtopnm
894 ("texlive" ,(texlive-union (list texlive-metapost
895 texlive-generic-epsf
896 texlive-latex-lh
897 texlive-latex-cyrillic)))
898 ("texinfo" ,texinfo)
899 ("texi2html" ,texi2html)
900 ("rsync" ,rsync)
901 ("pkg-config" ,pkg-config)
902 ("zip" ,zip)))
903 (home-page "http://www.lilypond.org/")
904 (synopsis "Music typesetting")
905 (description
906 "GNU LilyPond is a music typesetter, which produces high-quality sheet
907 music. Music is input in a text file containing control sequences which are
908 interpreted by LilyPond to produce the final document. It is extendable with
909 Guile.")
910 (license license:gpl3+)
911
912 ;; On armhf and mips64el, building the documentation sometimes leads to
913 ;; more than an hour of silence, so double the max silent time.
914 (properties `((max-silent-time . 7200)))))
915
916 (define-public non-sequencer
917 ;; The latest tagged release is three years old and uses a custom build
918 ;; system, so we take the last commit.
919 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
920 (revision "3"))
921 (package
922 (name "non-sequencer")
923 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
924 (source (origin
925 (method git-fetch)
926 (uri (git-reference
927 (url "git://git.tuxfamily.org/gitroot/non/non.git")
928 (commit commit)))
929 (sha256
930 (base32
931 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
932 (file-name (string-append name "-" version "-checkout"))))
933 (build-system waf-build-system)
934 (arguments
935 `(#:tests? #f ;no "check" target
936 #:configure-flags
937 (list "--project=sequencer"
938 ;; Disable the use of SSE unless on x86_64.
939 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
940 (%current-system))))
941 '("--disable-sse")
942 '()))
943 #:phases
944 (modify-phases %standard-phases
945 (add-before
946 'configure 'set-flags
947 (lambda _
948 ;; Compile with C++11, required by libsigc++.
949 (setenv "CXXFLAGS" "-std=c++11")
950 #t)))
951 #:python ,python-2))
952 (inputs
953 `(("jack" ,jack-1)
954 ("libsigc++" ,libsigc++)
955 ("liblo" ,liblo)
956 ("ntk" ,ntk)))
957 (native-inputs
958 `(("pkg-config" ,pkg-config)))
959 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
960 (synopsis "Pattern-based MIDI sequencer")
961 (description
962 "The Non Sequencer is a powerful, lightweight, real-time,
963 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
964 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
965 Sequencer happens on-line, in real-time. Music can be composed live, while the
966 transport is rolling.")
967 (license license:gpl2+))))
968
969 (define-public non-session-manager
970 (package (inherit non-sequencer)
971 (name "non-session-manager")
972 (arguments
973 (substitute-keyword-arguments (package-arguments non-sequencer)
974 ((#:configure-flags flags)
975 `(cons "--project=session-manager"
976 (delete "--project=sequencer" ,flags)))))
977 (inputs
978 `(("jack" ,jack-1)
979 ("liblo" ,liblo)
980 ("ntk" ,ntk)))
981 (native-inputs
982 `(("pkg-config" ,pkg-config)))
983 (home-page "http://non.tuxfamily.org/nsm/")
984 (synopsis "Audio session management")
985 (description
986 "The Non Session Manager is an API and an implementation for audio
987 session management. NSM clients use a well-specified OSC protocol to
988 communicate with the session management daemon.")
989 (license license:gpl2+)))
990
991 (define-public non-mixer
992 (package (inherit non-sequencer)
993 (name "non-mixer")
994 (arguments
995 (substitute-keyword-arguments (package-arguments non-sequencer)
996 ((#:configure-flags flags)
997 `(cons "--project=mixer"
998 (delete "--project=sequencer" ,flags)))))
999 (inputs
1000 `(("jack" ,jack-1)
1001 ("liblo" ,liblo)
1002 ("ladspa" ,ladspa)
1003 ("lrdf" ,lrdf)
1004 ("ntk" ,ntk)))
1005 (native-inputs
1006 `(("pkg-config" ,pkg-config)))
1007 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
1008 (synopsis "Modular digital audio mixer")
1009 (description
1010 "The Non Mixer is a powerful, reliable and fast modular digital audio
1011 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1012 toolkit for a fast and lightweight user interface. Non Mixer can be used
1013 alone or in concert with Non Timeline and Non Sequencer to form a complete
1014 studio.")
1015 (license license:gpl2+)))
1016
1017 (define-public non-timeline
1018 (package (inherit non-sequencer)
1019 (name "non-timeline")
1020 (arguments
1021 (substitute-keyword-arguments (package-arguments non-sequencer)
1022 ((#:configure-flags flags)
1023 `(cons "--project=timeline"
1024 (delete "--project=sequencer" ,flags)))))
1025 (inputs
1026 `(("jack" ,jack-1)
1027 ("liblo" ,liblo)
1028 ("libsndfile" ,libsndfile)
1029 ("ntk" ,ntk)))
1030 (native-inputs
1031 `(("pkg-config" ,pkg-config)))
1032 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1033 (synopsis "Modular digital audio timeline arranger")
1034 (description
1035 "The Non Timeline is a powerful, reliable and fast modular digital audio
1036 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1037 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1038 be used alone or in concert with Non Mixer and Non Sequencer to form a
1039 complete studio.")
1040 (license license:gpl2+)))
1041
1042 (define-public solfege
1043 (package
1044 (name "solfege")
1045 (version "3.22.2")
1046 (source (origin
1047 (method url-fetch)
1048 (uri (string-append
1049 "mirror://gnu/solfege/solfege-"
1050 version ".tar.xz"))
1051 (sha256
1052 (base32
1053 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1054 (build-system gnu-build-system)
1055 (arguments
1056 `(#:tests? #f ; xmllint attempts to download DTD
1057 #:test-target "test"
1058 #:phases
1059 (modify-phases %standard-phases
1060 (add-after 'unpack 'fix-configuration
1061 (lambda* (#:key inputs #:allow-other-keys)
1062 (substitute* "default.config"
1063 (("/usr/bin/aplay") "aplay")
1064 (("/usr/bin/timidity") "timidity")
1065 (("/usr/bin/mpg123") "mpg123")
1066 (("/usr/bin/ogg123") "ogg123"))
1067 #t))
1068 (add-before 'build 'patch-python-shebangs
1069 (lambda _
1070 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1071 ;; has no effect.
1072 (substitute* '("solfege/parsetree.py"
1073 "solfege/presetup.py")
1074 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1075 #t))
1076 (add-before 'build 'add-sitedirs
1077 ;; .pth files are not automatically interpreted unless the
1078 ;; directories containing them are added as "sites". The directories
1079 ;; are then added to those in the PYTHONPATH. This is required for
1080 ;; the operation of pygtk and pygobject.
1081 (lambda _
1082 (substitute* "run-solfege.py"
1083 (("import os")
1084 "import os, site
1085 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1086 #t))
1087 (add-before 'build 'adjust-config-file-prefix
1088 (lambda* (#:key outputs #:allow-other-keys)
1089 (substitute* "run-solfege.py"
1090 (("prefix = os.path.*$")
1091 (string-append "prefix = " (assoc-ref outputs "out"))))
1092 #t))
1093 (add-after 'install 'wrap-program
1094 (lambda* (#:key inputs outputs #:allow-other-keys)
1095 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1096 (let* ((out (assoc-ref outputs "out"))
1097 (path (getenv "PYTHONPATH")))
1098 (wrap-program (string-append out "/bin/solfege")
1099 `("PYTHONPATH" ":" prefix (,path))))
1100 #t)))))
1101 (inputs
1102 `(("python" ,python-2)
1103 ("pygtk" ,python2-pygtk)
1104 ("gettext" ,gettext-minimal)
1105 ("gtk" ,gtk+)
1106 ("lilypond" ,lilypond)))
1107 (native-inputs
1108 `(("pkg-config" ,pkg-config)
1109 ("txt2man" ,txt2man)
1110 ("libxml2" ,libxml2) ; for tests
1111 ("ghostscript" ,ghostscript)
1112 ("texinfo" ,texinfo)))
1113 (home-page "https://www.gnu.org/software/solfege/")
1114 (synopsis "Ear training")
1115 (description
1116 "GNU Solfege is a program for practicing musical ear-training. With it,
1117 you can practice your recognition of various musical intervals and chords. It
1118 features a statistics overview so you can monitor your progress across several
1119 sessions. Solfege is also designed to be extensible so you can easily write
1120 your own lessons.")
1121 (license license:gpl3+)))
1122
1123 (define-public powertabeditor
1124 (package
1125 (name "powertabeditor")
1126 (version "2.0.0-alpha10")
1127 (source (origin
1128 (method url-fetch)
1129 (uri (string-append
1130 "https://github.com/powertab/powertabeditor/archive/"
1131 version ".tar.gz"))
1132 (file-name (string-append name "-" version ".tar.gz"))
1133 (sha256
1134 (base32
1135 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
1136 (modules '((guix build utils)))
1137 (snippet
1138 '(begin
1139 ;; Remove bundled sources for external libraries
1140 (delete-file-recursively "external")
1141 ;; Use only system libraries
1142 (substitute* "CMakeLists.txt"
1143 (("include\\( PTE_ThirdParty \\)")
1144 "\
1145 include(third_party/Qt)
1146 include(third_party/boost)
1147 add_library( Catch INTERFACE IMPORTED )
1148 add_library( rapidjson INTERFACE IMPORTED )"))
1149 #t))))
1150 (build-system cmake-build-system)
1151 (arguments
1152 `(#:modules ((guix build cmake-build-system)
1153 (guix build utils)
1154 (ice-9 match))
1155 #:configure-flags
1156 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1157 ;; explicitly set with CMAKE_INSTALL_RPATH.
1158 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
1159 (string-append "-DCMAKE_INSTALL_RPATH="
1160 (string-join (map (match-lambda
1161 ((name . directory)
1162 (string-append directory "/lib")))
1163 %build-inputs) ";"))
1164 "-DPTE_DATA_DIR=share/powertabeditor")
1165 #:phases
1166 (modify-phases %standard-phases
1167 (replace 'check
1168 (lambda _
1169 (zero? (system* "bin/pte_tests"
1170 ;; FIXME: these tests fail
1171 "exclude:Actions/EditStaff"
1172 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1173 "exclude:Score/ViewFilter/FilterRule"
1174 "exclude:Score/ViewFilter/ViewFilter"
1175 "exclude:Formats/PowerTabOldImport/Directions"
1176 ))))
1177 ;; FIXME: This bug has been fixed upstream, but no release has been
1178 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1179 (add-after 'unpack 'fix-boost-bug
1180 (lambda _
1181 (substitute* "source/score/voiceutils.cpp"
1182 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1183 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1184 #t))
1185 (add-before 'configure 'remove-third-party-libs
1186 (lambda* (#:key inputs #:allow-other-keys)
1187 ;; Link with required static libraries, because we're not
1188 ;; using the bundled version of withershins.
1189 ;; Also add pthread for fixing a linker error.
1190 (substitute* "source/build/CMakeLists.txt"
1191 (("withershins" line)
1192 (string-append line "\n"
1193 (assoc-ref inputs "binutils")
1194 "/lib/libbfd.a\n"
1195 (assoc-ref inputs "libiberty")
1196 "/lib/libiberty.a\n"
1197 "dl\n"
1198 "pthread\n"
1199 "z\n")))
1200 #t)))))
1201 (inputs
1202 `(("boost" ,boost)
1203 ("alsa-lib" ,alsa-lib)
1204 ("qtbase" ,qtbase)
1205 ("withershins" ,withershins)
1206 ("libiberty" ,libiberty) ;for withershins
1207 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1208 ("timidity" ,timidity++)
1209 ("pugixml" ,pugixml)
1210 ("rtmidi" ,rtmidi)
1211 ("rapidjson" ,rapidjson)
1212 ("zlib" ,zlib)))
1213 (native-inputs
1214 `(("catch" ,catch-framework)
1215 ("pkg-config" ,pkg-config)))
1216 (home-page "http://powertabs.net")
1217 (synopsis "Guitar tablature editor")
1218 (description
1219 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1220 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1221 (license license:gpl3+)))
1222
1223 (define-public jalv-select
1224 (package
1225 (name "jalv-select")
1226 (version "0.8")
1227 (source (origin
1228 (method url-fetch)
1229 (uri (string-append "https://github.com/brummer10/jalv_select/"
1230 "archive/V" version ".tar.gz"))
1231 (sha256
1232 (base32
1233 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1234 (build-system gnu-build-system)
1235 (arguments
1236 `(#:make-flags
1237 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1238 #:phases
1239 (modify-phases %standard-phases
1240 (delete 'configure)
1241 (add-after 'unpack 'ignore-PATH
1242 (lambda* (#:key inputs #:allow-other-keys)
1243 (substitute* "jalv.select.cpp"
1244 (("echo \\$PATH.*tr ':'.*xargs ls")
1245 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1246 (substitute* "jalv.select.h"
1247 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1248 #t)))))
1249 (inputs
1250 `(("lilv" ,lilv)
1251 ("lv2" ,lv2)
1252 ("jalv" ,jalv)
1253 ("gtkmm" ,gtkmm-2)))
1254 (native-inputs
1255 `(("pkg-config" ,pkg-config)))
1256 (home-page "https://github.com/brummer10/jalv_select")
1257 (synopsis "GUI to select LV2 plugins and run them with jalv")
1258 (description
1259 "The jalv.select package provides a graphical user interface allowing
1260 users to select LV2 plugins and run them with jalv.")
1261 (license license:public-domain)))
1262
1263 (define-public synthv1
1264 (package
1265 (name "synthv1")
1266 (version "0.9.0")
1267 (source (origin
1268 (method url-fetch)
1269 (uri
1270 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1271 "/synthv1-" version ".tar.gz"))
1272 (sha256
1273 (base32
1274 "1skynjg6ip0qfbqqkybfjh6xcwxagq89ghl08f7sp7j0sz5qdcwp"))))
1275 (build-system gnu-build-system)
1276 (arguments
1277 `(#:tests? #f ; There are no tests.
1278 #:configure-flags
1279 '("CXXFLAGS=-std=gnu++11")))
1280 (inputs
1281 `(("jack" ,jack-1)
1282 ("lv2" ,lv2)
1283 ("alsa-lib" ,alsa-lib)
1284 ("non-session-manager" ,non-session-manager)
1285 ("liblo" ,liblo)
1286 ("qtbase" ,qtbase)
1287 ("qttools" ,qttools)))
1288 (native-inputs
1289 `(("pkg-config" ,pkg-config)))
1290 (home-page "http://synthv1.sourceforge.net")
1291 (synopsis "Polyphonic subtractive synthesizer")
1292 (description
1293 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1294 oscillators and stereo effects.")
1295 (license license:gpl2+)))
1296
1297 (define-public drumkv1
1298 (package
1299 (name "drumkv1")
1300 (version "0.9.0")
1301 (source (origin
1302 (method url-fetch)
1303 (uri
1304 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1305 "/drumkv1-" version ".tar.gz"))
1306 (sha256
1307 (base32
1308 "1vm8lrk3lykdic6fyfpl12jx1xg6rcaid242s8sij30p1ix4zdab"))))
1309 (build-system gnu-build-system)
1310 (arguments
1311 `(#:tests? #f ; There are no tests.
1312 #:configure-flags
1313 '("CXXFLAGS=-std=gnu++11")))
1314 (inputs
1315 `(("jack" ,jack-1)
1316 ("lv2" ,lv2)
1317 ("libsndfile" ,libsndfile)
1318 ("alsa-lib" ,alsa-lib)
1319 ("non-session-manager" ,non-session-manager)
1320 ("liblo" ,liblo)
1321 ("qtbase" ,qtbase)))
1322 (native-inputs
1323 `(("pkg-config" ,pkg-config)
1324 ("qttools" ,qttools)))
1325 (home-page "http://drumkv1.sourceforge.net")
1326 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1327 (description
1328 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1329 effects.")
1330 (license license:gpl2+)))
1331
1332 (define-public samplv1
1333 (package
1334 (name "samplv1")
1335 (version "0.9.0")
1336 (source (origin
1337 (method url-fetch)
1338 (uri
1339 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1340 "/samplv1-" version ".tar.gz"))
1341 (sha256
1342 (base32
1343 "0g67vm9ilmq5nlvk0f3abia9pbinr4ck5v4mll6igni1rxz2n7wk"))))
1344 (build-system gnu-build-system)
1345 (arguments
1346 `(#:tests? #f ; There are no tests.
1347 #:configure-flags
1348 '("CXXFLAGS=-std=gnu++11")))
1349 (inputs
1350 `(("jack" ,jack-1)
1351 ("lv2" ,lv2)
1352 ("libsndfile" ,libsndfile)
1353 ("alsa-lib" ,alsa-lib)
1354 ("non-session-manager" ,non-session-manager)
1355 ("liblo" ,liblo)
1356 ("qtbase" ,qtbase)))
1357 (native-inputs
1358 `(("pkg-config" ,pkg-config)
1359 ("qttools" ,qttools)))
1360 (home-page "http://samplv1.sourceforge.net")
1361 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1362 (description
1363 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1364 effects.")
1365 (license license:gpl2+)))
1366
1367 (define-public padthv1
1368 (package
1369 (name "padthv1")
1370 (version "0.9.0")
1371 (source (origin
1372 (method url-fetch)
1373 (uri
1374 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1375 "/padthv1-" version ".tar.gz"))
1376 (sha256
1377 (base32
1378 "0c519qk2g0dk8gqf9ywqfp7dnr4b25lsnxxbf2l1spnnvf8nysvh"))))
1379 (build-system gnu-build-system)
1380 (arguments
1381 `(#:tests? #f ; There are no tests.
1382 #:configure-flags
1383 '("CXXFLAGS=-std=gnu++11")))
1384 (inputs
1385 `(("jack" ,jack-1)
1386 ("lv2" ,lv2)
1387 ("alsa-lib" ,alsa-lib)
1388 ("non-session-manager" ,non-session-manager)
1389 ("liblo" ,liblo)
1390 ("fftw" ,fftw)
1391 ("qtbase" ,qtbase)))
1392 (native-inputs
1393 `(("pkg-config" ,pkg-config)
1394 ("qttools" ,qttools)))
1395 (home-page "http://padthv1.sourceforge.net")
1396 (synopsis "Polyphonic additive synthesizer")
1397 (description
1398 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1399 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1400 special variant of additive synthesis.")
1401 (license license:gpl2+)))
1402
1403 (define-public amsynth
1404 (package
1405 (name "amsynth")
1406 (version "1.7.1")
1407 (source
1408 (origin
1409 (method url-fetch)
1410 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1411 "download/release-" version
1412 "/amsynth-" version ".tar.bz2"))
1413 (sha256
1414 (base32
1415 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1416 (build-system gnu-build-system)
1417 (arguments
1418 `(#:phases
1419 (modify-phases %standard-phases
1420 (add-before 'configure 'set-flags
1421 (lambda _
1422 ;; Compile with C++11, required by gtkmm.
1423 (setenv "CXXFLAGS" "-std=c++11")
1424 #t)))))
1425 (inputs
1426 `(("alsa-lib" ,alsa-lib)
1427 ("jack" ,jack-1)
1428 ("lv2" ,lv2)
1429 ("lash" ,lash)
1430 ("libsndfile" ,libsndfile)
1431 ("gtk+" ,gtk+-2)
1432 ("gtkmm" ,gtkmm-2)))
1433 (native-inputs
1434 `(("pkg-config" ,pkg-config)
1435 ("intltool" ,intltool)))
1436 (home-page "http://amsynth.github.io")
1437 (synopsis "Analog modeling synthesizer")
1438 (description
1439 "amsynth is an easy-to-use software synthesizer with a classic
1440 subtractive synthesizer topology. Its features include: dual
1441 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1442 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1443 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1444 which can modulate the oscillators, filter, and amplitude; distortion and
1445 reverb effects.")
1446 (license license:gpl2+)))
1447
1448 (define-public setbfree
1449 (package
1450 (name "setbfree")
1451 (version "0.8.5")
1452 (source (origin
1453 (method url-fetch)
1454 (uri
1455 (string-append "https://github.com/pantherb/setBfree/archive/v"
1456 version ".tar.gz"))
1457 (file-name (string-append name "-" version ".tar.gz"))
1458 (sha256
1459 (base32
1460 "0qfccny0hh9lq54272mzmxvfz2jmzcgigjkjwn6v9h6n00gi5bw4"))))
1461 (build-system gnu-build-system)
1462 (arguments
1463 `(#:tests? #f ; no "check" target
1464 #:make-flags
1465 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1466 (string-append "FONTFILE="
1467 (assoc-ref %build-inputs "font-bitstream-vera")
1468 "/share/fonts/truetype/VeraBd.ttf")
1469 ;; Disable unsupported optimization flags on non-x86
1470 ,@(let ((system (or (%current-target-system)
1471 (%current-system))))
1472 (if (or (string-prefix? "x86_64" system)
1473 (string-prefix? "i686" system))
1474 '()
1475 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1476 #:phases
1477 (modify-phases %standard-phases
1478 (add-before 'build 'set-CC-variable
1479 (lambda _ (setenv "CC" "gcc") #t))
1480 (delete 'configure))))
1481 (inputs
1482 `(("jack" ,jack-1)
1483 ("lv2" ,lv2)
1484 ("zita-convolver" ,zita-convolver)
1485 ("glu" ,glu)
1486 ("ftgl" ,ftgl)
1487 ("font-bitstream-vera" ,font-bitstream-vera)))
1488 (native-inputs
1489 `(("help2man" ,help2man)
1490 ("pkg-config" ,pkg-config)))
1491 (home-page "http://setbfree.org")
1492 (synopsis "Tonewheel organ")
1493 (description
1494 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1495 the sound and properties of the electromechanical organs and sound
1496 modification devices that brought world-wide fame to the names and products of
1497 Laurens Hammond and Don Leslie.")
1498 (license license:gpl2+)))
1499
1500 (define-public beast
1501 (package
1502 (name "beast")
1503 (version "0.10.0")
1504 (source (origin
1505 (method url-fetch)
1506 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1507 version ".tar.xz"))
1508 (sha256
1509 (base32
1510 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1511 (build-system gnu-build-system)
1512 (arguments
1513 '(#:parallel-build? #f)) ; Race conditions cause build failures
1514 (inputs
1515 `(("rapicorn" ,rapicorn)
1516 ("guile" ,guile-1.8)
1517 ("python" ,python-2)
1518 ("libgnomecanvas" ,libgnomecanvas)
1519 ("libogg" ,libogg)
1520 ("libmad" ,libmad)
1521 ("flac" ,flac)
1522 ("alsa-lib" ,alsa-lib)
1523 ("libvorbis" ,libvorbis)
1524 ("gettext" ,gettext-minimal)))
1525 (native-inputs
1526 `(("pkg-config" ,pkg-config)
1527 ("glib:bin" ,glib "bin")
1528 ("cython" ,python2-cython)
1529 ("perl" ,perl)
1530 ("perl-xml-parser" ,perl-xml-parser)))
1531 (home-page "https://testbit.eu/wiki/Beast_Home")
1532 (synopsis "Music composition and modular synthesis environment")
1533 (description
1534 "Beast is a music composition and modular synthesis application. It
1535 supports a wide range of standards in the field, such as MIDI, various audio
1536 file formats and LADSPA modules. It allows for multitrack editing, real-time
1537 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1538 on-demand and partial loading of wave files, on the fly decoding, stereo
1539 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1540 (license license:gpl3+)))
1541
1542 (define-public bristol
1543 (package
1544 (name "bristol")
1545 (version "0.60.11")
1546 (source (origin
1547 (method url-fetch)
1548 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1549 (version-major+minor version)
1550 "/bristol-" version ".tar.gz"))
1551 (sha256
1552 (base32
1553 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1554 (build-system gnu-build-system)
1555 (arguments
1556 `(#:phases
1557 (modify-phases %standard-phases
1558 (add-after 'unpack 'remove-sse-flags
1559 (lambda* (#:key system #:allow-other-keys)
1560 (when (not (or (string-prefix? "x86_64" system)
1561 (string-prefix? "i686" system)))
1562 (substitute* "bristol/Makefile.in"
1563 (("-msse -mfpmath=sse") "")))
1564 #t))
1565 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1566 ;; bristol actually doesn't use it.
1567 (add-after 'unpack 'do-not-use-alsa-iatomic
1568 (lambda _
1569 (substitute* "libbristolaudio/audioEngineJack.c"
1570 (("#include <alsa/iatomic.h>") ""))
1571 #t))
1572 ;; We know that Bristol has been linked with JACK and we don't have
1573 ;; ldd, so we can just skip this check.
1574 (add-after 'unpack 'do-not-grep-for-jack
1575 (lambda _
1576 (substitute* "bin/startBristol.in"
1577 (("ldd `which bristol` | grep jack") "echo guix"))
1578 #t)))))
1579 (inputs
1580 `(("alsa-lib" ,alsa-lib)
1581 ("jack" ,jack-1)
1582 ("liblo" ,liblo)
1583 ("libx11" ,libx11)))
1584 (native-inputs
1585 `(("pkg-config" ,pkg-config)))
1586 (home-page "http://bristol.sourceforge.net/")
1587 (synopsis "Synthesizer emulator")
1588 (description
1589 "Bristol is an emulation package for a number of different 'classic'
1590 synthesizers including additive and subtractive and a few organs. The
1591 application consists of the engine, which is called bristol, and its own GUI
1592 library called brighton that represents all the emulations. There are
1593 currently more than twenty different emulations; each does sound different
1594 although the author maintains that the quality and accuracy of each emulation
1595 is subjective.")
1596 (license license:gpl3+)))
1597
1598 (define-public tuxguitar
1599 (package
1600 (name "tuxguitar")
1601 (version "1.5")
1602 (source (origin
1603 (method url-fetch)
1604 (uri (string-append
1605 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1606 version "/tuxguitar-" version "-src.tar.gz"))
1607 (sha256
1608 (base32
1609 "1yd5wv17sh6i8pkndxayfd6r2k1ccgnc4w3nda3lpniv8cpjzz3k"))
1610 (modules '((guix build utils)))
1611 (snippet
1612 '(begin
1613 ;; Delete pre-built classes
1614 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1615 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1616 #t))))
1617 (build-system ant-build-system)
1618 (arguments
1619 `(#:build-target "build"
1620 #:jdk ,icedtea-8
1621 #:tests? #f ; no tests
1622 #:phases
1623 (modify-phases %standard-phases
1624 (add-after 'unpack 'enter-dir
1625 (lambda _ (chdir "TuxGuitar-lib") #t))
1626 (add-after 'build 'build-libraries
1627 (lambda* (#:key inputs outputs #:allow-other-keys)
1628 (let* ((initial-classpath (getenv "CLASSPATH"))
1629 (build-dir (lambda (dir)
1630 (chdir "..")
1631 (setenv "CLASSPATH"
1632 (string-join (cons initial-classpath
1633 (find-files (getcwd) "\\.jar$"))
1634 ":"))
1635 (chdir dir)
1636 (if (file-exists? "build.xml")
1637 ((assoc-ref %standard-phases 'build)
1638 #:build-target "build")
1639 (begin
1640 ;; Generate default build.xml
1641 ((@@ (guix build ant-build-system) default-build.xml)
1642 (string-append (string-downcase dir) ".jar")
1643 (string-append (assoc-ref outputs "out")
1644 "/share/java"))
1645 ((assoc-ref %standard-phases 'build)))))))
1646 (map build-dir '("TuxGuitar-editor-utils"
1647 "TuxGuitar-ui-toolkit"
1648 "TuxGuitar-ui-toolkit-swt"
1649 "TuxGuitar-awt-graphics")))))
1650 (add-after 'build-libraries 'build-application
1651 (lambda _
1652 (chdir "../TuxGuitar")
1653 ((assoc-ref %standard-phases 'build)
1654 #:build-target "build")))
1655 (replace 'install
1656 (lambda* (#:key inputs outputs #:allow-other-keys)
1657 (let* ((out (assoc-ref outputs "out"))
1658 (bin (string-append out "/bin"))
1659 (share (string-append out "/share"))
1660 (lib (string-append share "/java"))
1661 (swt (assoc-ref inputs "java-swt")))
1662 (mkdir-p bin)
1663 ;; install all jars
1664 (for-each (lambda (file)
1665 (install-file file lib))
1666 (find-files ".." "\\.jar$"))
1667
1668 ;; install all resources
1669 (copy-recursively "share" share)
1670
1671 ;; create wrapper
1672 (call-with-output-file (string-append bin "/tuxguitar")
1673 (lambda (port)
1674 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1675 (find-files swt "\\.jar$"))
1676 ":")))
1677 (format
1678 port
1679 (string-append "#!/bin/sh\n"
1680 (which "java")
1681 " -cp " classpath
1682 " -Dtuxguitar.home.path=" out
1683 " -Dtuxguitar.share.path=" out "/share"
1684 " -Dswt.library.path=" swt "/lib"
1685 " org.herac.tuxguitar.app.TGMainSingleton"
1686 " \"$1\" \"$2\"")))))
1687 (chmod (string-append bin "/tuxguitar") #o555)
1688 #t))))))
1689 (inputs
1690 `(("java-swt" ,java-swt)))
1691 (home-page "http://tuxguitar.com.ar/")
1692 (synopsis "Multitrack tablature editor and player")
1693 (description
1694 "TuxGuitar is a guitar tablature editor with player support through midi.
1695 It can display scores and multitrack tabs. TuxGuitar provides various
1696 additional features, including autoscrolling while playing, note duration
1697 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1698 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1699 export.")
1700 (license license:lgpl2.1+)))
1701
1702 (define-public pd
1703 (package
1704 (name "pd")
1705 (version "0.47-1")
1706 (source (origin
1707 (method url-fetch)
1708 (uri
1709 (string-append "http://msp.ucsd.edu/Software/pd-"
1710 version ".src.tar.gz"))
1711 (sha256
1712 (base32
1713 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1714 (build-system gnu-build-system)
1715 (arguments
1716 `(#:tests? #f ; no "check" target
1717 #:phases
1718 (modify-phases %standard-phases
1719 (add-before 'configure 'fix-wish-path
1720 (lambda _
1721 (substitute* "src/s_inter.c"
1722 ((" wish ") (string-append " " (which "wish8.6") " ")))
1723 (substitute* "tcl/pd-gui.tcl"
1724 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1725 #t))
1726 (add-after 'unpack 'autoconf
1727 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1728 (native-inputs
1729 `(("autoconf" ,autoconf)
1730 ("automake" ,automake)
1731 ("libtool" ,libtool)
1732 ("gettext" ,gettext-minimal)
1733 ("pkg-config" ,pkg-config)))
1734 (inputs
1735 `(("tk" ,tk)
1736 ("alsa-lib" ,alsa-lib)
1737 ("jack" ,jack-1)))
1738 (home-page "http://puredata.info")
1739 (synopsis "Visual programming language for artistic performances")
1740 (description
1741 "Pure Data (aka Pd) is a visual programming language. Pd enables
1742 musicians, visual artists, performers, researchers, and developers to create
1743 software graphically, without writing lines of code. Pd is used to process
1744 and generate sound, video, 2D/3D graphics, and interface sensors, input
1745 devices, and MIDI. Pd can easily work over local and remote networks to
1746 integrate wearable technology, motor systems, lighting rigs, and other
1747 equipment. Pd is suitable for learning basic multimedia processing and visual
1748 programming methods as well as for realizing complex systems for large-scale
1749 projects.")
1750 (license license:bsd-3)))
1751
1752 (define-public portmidi
1753 (package
1754 (name "portmidi")
1755 (version "217")
1756 (source (origin
1757 (method url-fetch)
1758 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1759 version "/portmidi-src-" version ".zip"))
1760 (sha256
1761 (base32
1762 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1763 (patches (list (search-patch "portmidi-modular-build.patch")))))
1764 (build-system cmake-build-system)
1765 (arguments
1766 `(#:tests? #f ; tests cannot be linked
1767 #:build-type "Release" ; needed to have PMALSA set
1768 #:configure-flags
1769 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1770 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
1771 #:phases
1772 (modify-phases %standard-phases
1773 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
1774 ;; "libportmidi.so". Distributions get away with it by creating an
1775 ;; appropriate symlink.
1776 (add-after 'install 'add-porttime
1777 (lambda* (#:key outputs #:allow-other-keys)
1778 (let* ((out (assoc-ref outputs "out"))
1779 (lib (string-append out "/lib")))
1780 (with-directory-excursion lib
1781 (symlink "libportmidi.so" "libporttime.so")))
1782 #t)))))
1783 (inputs
1784 `(("alsa-lib" ,alsa-lib)))
1785 (native-inputs
1786 `(("unzip" ,unzip)))
1787 (home-page "http://portmedia.sourceforge.net/portmidi/")
1788 (synopsis "Library for MIDI I/O")
1789 (description
1790 "PortMidi is a library supporting real-time input and output of MIDI data
1791 using a system-independent interface.")
1792 (license license:expat)))
1793
1794 (define-public portmidi-for-extempore
1795 (package (inherit portmidi)
1796 (name "portmidi-for-extempore")
1797 (version "217")
1798 (source (origin
1799 (method url-fetch)
1800 (uri (string-append "https://github.com/extemporelang/portmidi/"
1801 "archive/" version ".tar.gz"))
1802 (file-name (string-append name "-" version ".tar.gz"))
1803 (sha256
1804 (base32
1805 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1806 (build-system cmake-build-system)
1807 (arguments `(#:tests? #f)) ; no tests
1808 (native-inputs '())
1809 ;; Extempore refuses to build on architectures other than x86_64
1810 (supported-systems '("x86_64-linux"))
1811 (home-page "https://github.com/extemporelang/portmidi/")))
1812
1813 (define-public python-pyportmidi
1814 (package
1815 (name "python-pyportmidi")
1816 (version (package-version portmidi))
1817 (source (package-source portmidi))
1818 (build-system python-build-system)
1819 (arguments
1820 `(#:tests? #f ; no tests included
1821 #:phases
1822 (modify-phases %standard-phases
1823 (add-after 'unpack 'enter-dir
1824 (lambda _ (chdir "pm_python") #t))
1825 (add-after 'enter-dir 'fix-setup.py
1826 (lambda _
1827 (substitute* "setup.py"
1828 ;; Use Python 3 syntax
1829 (("print (\".*\")" _ text)
1830 (string-append "print(" text ")\n"))
1831 ;; TODO.txt and CHANGES.txt don't exist
1832 (("CHANGES =.*") "CHANGES = \"\"\n")
1833 (("TODO =.*") "TODO = \"\"\n"))
1834 #t)))))
1835 (inputs
1836 `(("portmidi" ,portmidi)
1837 ("alsa-lib" ,alsa-lib)))
1838 (native-inputs
1839 `(("python-cython" ,python-cython)
1840 ("unzip" ,unzip)))
1841 (home-page "http://portmedia.sourceforge.net/portmidi/")
1842 (synopsis "Python bindings to PortMidi")
1843 (description
1844 "This package provides Python bindings to the PortMidi library.")
1845 (license license:expat)))
1846
1847 (define-public frescobaldi
1848 (package
1849 (name "frescobaldi")
1850 (version "3.0.0")
1851 (source (origin
1852 (method url-fetch)
1853 (uri (string-append
1854 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1855 version "/frescobaldi-" version ".tar.gz"))
1856 (sha256
1857 (base32
1858 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1859 (build-system python-build-system)
1860 (arguments `(#:tests? #f)) ; no tests included
1861 (inputs
1862 `(("lilypond" ,lilypond)
1863 ("portmidi" ,portmidi)
1864 ("python-pyqt" ,python-pyqt)
1865 ("python-ly" ,python-ly)
1866 ("python-pyportmidi" ,python-pyportmidi)
1867 ("poppler" ,poppler)
1868 ("python-poppler-qt5" ,python-poppler-qt5)
1869 ("python-sip" ,python-sip)))
1870 (home-page "http://www.frescobaldi.org/")
1871 (synopsis "LilyPond sheet music text editor")
1872 (description
1873 "Frescobaldi is a LilyPond sheet music text editor with syntax
1874 highlighting and automatic completion. Among other things, it can render
1875 scores next to the source, can capture input from MIDI or read MusicXML and
1876 ABC files, has a MIDI player for proof-listening, and includes a documentation
1877 browser.")
1878 (license license:gpl2+)))
1879
1880 (define-public drumstick
1881 (package
1882 (name "drumstick")
1883 (version "1.1.1")
1884 (source (origin
1885 (method url-fetch)
1886 (uri (string-append "mirror://sourceforge/drumstick/"
1887 version "/drumstick-" version ".tar.bz2"))
1888 (sha256
1889 (base32
1890 "0avwxr6n9ra7narxc5lmkhdqi8ix10gmif8rpd06wp4g9iv46xrn"))))
1891 (build-system cmake-build-system)
1892 (arguments
1893 `(#:tests? #f ; no test target
1894 #:configure-flags '("-DLIB_SUFFIX=")
1895 #:phases
1896 (modify-phases %standard-phases
1897 (add-before 'configure 'fix-docbook
1898 (lambda* (#:key inputs #:allow-other-keys)
1899 (substitute* "cmake_admin/CreateManpages.cmake"
1900 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1901 (string-append (assoc-ref inputs "docbook-xsl")
1902 "/xml/xsl/docbook-xsl-"
1903 ,(package-version docbook-xsl)
1904 "/manpages/docbook.xsl")))
1905 #t)))))
1906 (inputs
1907 `(("qtbase" ,qtbase)
1908 ("qtsvg" ,qtsvg)
1909 ("alsa-lib" ,alsa-lib)))
1910 (native-inputs
1911 `(("pkg-config" ,pkg-config)
1912 ("libxslt" ,libxslt) ; for xsltproc
1913 ("docbook-xsl" ,docbook-xsl)
1914 ("doxygen" ,doxygen)))
1915 (home-page "http://drumstick.sourceforge.net/")
1916 (synopsis "C++ MIDI library")
1917 (description
1918 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1919 includes a C++ wrapper around the ALSA library sequencer interface. A
1920 complementary library provides classes for processing SMF (Standard MIDI
1921 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1922 multiplatform realtime MIDI I/O library is also provided with various output
1923 backends, including ALSA, OSS, Network and FluidSynth.")
1924 (license license:gpl2+)))
1925
1926 (define-public zynaddsubfx
1927 (package
1928 (name "zynaddsubfx")
1929 (version "3.0.3")
1930 (source (origin
1931 (method url-fetch)
1932 (uri (string-append
1933 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1934 version "/zynaddsubfx-" version ".tar.bz2"))
1935 (sha256
1936 (base32
1937 "1hfpiqdm337gl4ynkmmp2qss2m5z8mzqzjrbiyg6w1v4js7l9phi"))))
1938 (build-system cmake-build-system)
1939 (arguments
1940 `(#:phases
1941 (modify-phases %standard-phases
1942 ;; Move SSE compiler optimization flags from generic target to
1943 ;; athlon64 and core2 targets, because otherwise the build would fail
1944 ;; on non-Intel machines.
1945 (add-after 'unpack 'remove-sse-flags-from-generic-target
1946 (lambda _
1947 (substitute* "src/CMakeLists.txt"
1948 (("-msse -msse2 -mfpmath=sse") "")
1949 (("-march=(athlon64|core2)" flag)
1950 (string-append flag " -msse -msse2 -mfpmath=sse")))
1951 #t)))))
1952 (inputs
1953 `(("liblo" ,liblo)
1954 ("ntk" ,ntk)
1955 ("mesa" ,mesa)
1956 ("alsa-lib" ,alsa-lib)
1957 ("jack" ,jack-1)
1958 ("fftw" ,fftw)
1959 ("minixml" ,minixml)
1960 ("libxpm" ,libxpm)
1961 ("zlib" ,zlib)))
1962 (native-inputs
1963 `(("pkg-config" ,pkg-config)))
1964 (home-page "http://zynaddsubfx.sf.net/")
1965 (synopsis "Software synthesizer")
1966 (description
1967 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1968 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1969 capabilities, custom envelopes, effects, etc.")
1970 (license license:gpl2)))
1971
1972 (define-public yoshimi
1973 (package
1974 (name "yoshimi")
1975 (version "1.5.8")
1976 (source (origin
1977 (method url-fetch)
1978 (uri (string-append "mirror://sourceforge/yoshimi/"
1979 (version-major+minor version)
1980 "/yoshimi-" version ".tar.bz2"))
1981 (sha256
1982 (base32
1983 "0gwsr5srzy28hwqhfzrc8pswysmyra8kbww3bxfx8bq4mdjifdj6"))))
1984 (build-system cmake-build-system)
1985 (arguments
1986 `(#:tests? #f ; there are no tests
1987 #:configure-flags
1988 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1989 (assoc-ref %outputs "out") "/share"))
1990 #:phases
1991 (modify-phases %standard-phases
1992 (add-before 'configure 'enter-dir
1993 (lambda _ (chdir "src") #t))
1994 ;; Move SSE compiler optimization flags from generic target to
1995 ;; athlon64 and core2 targets, because otherwise the build would fail
1996 ;; on non-Intel machines.
1997 (add-after 'unpack 'remove-sse-flags-from-generic-target
1998 (lambda _
1999 (substitute* "src/CMakeLists.txt"
2000 (("-msse -msse2 -mfpmath=sse") "")
2001 (("-march=(athlon64|core2)" flag)
2002 (string-append flag " -msse -msse2 -mfpmath=sse")))
2003 #t)))))
2004 (inputs
2005 `(("boost" ,boost)
2006 ("fftwf" ,fftwf)
2007 ("alsa-lib" ,alsa-lib)
2008 ("jack" ,jack-1)
2009 ("fontconfig" ,fontconfig)
2010 ("minixml" ,minixml)
2011 ("mesa" ,mesa)
2012 ("fltk" ,fltk)
2013 ("lv2" ,lv2)
2014 ("readline" ,readline)
2015 ("ncurses" ,ncurses)
2016 ("cairo" ,cairo)
2017 ("zlib" ,zlib)))
2018 (native-inputs
2019 `(("pkg-config" ,pkg-config)))
2020 (home-page "http://yoshimi.sourceforge.net/")
2021 (synopsis "Multi-paradigm software synthesizer")
2022 (description
2023 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2024 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2025 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2026 improves on support for JACK features, such as JACK MIDI.")
2027 (license license:gpl2)))
2028
2029 (define-public libgig
2030 (package
2031 (name "libgig")
2032 (version "4.0.0")
2033 (source (origin
2034 (method url-fetch)
2035 (uri (string-append "http://download.linuxsampler.org/packages/"
2036 "libgig-" version ".tar.bz2"))
2037 (sha256
2038 (base32
2039 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
2040 (build-system gnu-build-system)
2041 (inputs
2042 `(("libuuid" ,util-linux)
2043 ("libsndfile" ,libsndfile)))
2044 (native-inputs
2045 `(("pkg-config" ,pkg-config)))
2046 (home-page "http://linuxsampler.org/libgig/")
2047 (synopsis "C++ library for working with Gigasampler (.gig) files")
2048 (description
2049 "Libgig is a C++ library for loading, modifying existing and creating new
2050 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2051 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2052 AKAI sampler data. The package includes a couple of command line tools based
2053 on the library.")
2054 ;; The library and tools are released under the GPL, except the AKAI
2055 ;; classes which are released under the LGPL.
2056 (license (list license:gpl2+ license:lgpl2.1+))))
2057
2058 (define-public jack-keyboard
2059 (package
2060 (name "jack-keyboard")
2061 (version "2.5")
2062 (source
2063 (origin
2064 (method url-fetch)
2065 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2066 version "/jack-keyboard-" version ".tar.gz"))
2067 (sha256
2068 (base32
2069 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2070 (build-system gnu-build-system)
2071 (inputs
2072 `(("jack" ,jack-1)
2073 ("lash" ,lash)
2074 ("gtk+" ,gtk+-2)))
2075 (native-inputs
2076 `(("pkg-config" ,pkg-config)))
2077 (home-page "http://jack-keyboard.sourceforge.net/")
2078 (synopsis "Virtual MIDI keyboard")
2079 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2080 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2081 (license license:bsd-2)))
2082
2083 (define-public jack-capture
2084 (package
2085 (name "jack-capture")
2086 (version "0.9.73")
2087 (source (origin
2088 (method git-fetch)
2089 (uri (git-reference
2090 (url "https://github.com/kmatheussen/jack_capture.git")
2091 (commit version)))
2092 (file-name (string-append name "-" version "-checkout"))
2093 (sha256
2094 (base32
2095 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2096 (build-system gnu-build-system)
2097 (arguments
2098 `(#:make-flags
2099 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2100 #:tests? #f ; there are none
2101 #:phases
2102 (modify-phases %standard-phases
2103 (delete 'configure))))
2104 (native-inputs
2105 `(("pkg-config" ,pkg-config)
2106 ("which" ,which)))
2107 (inputs
2108 `(("gtk+" ,gtk+-2)
2109 ("jack" ,jack-1)
2110 ("libogg" ,libogg)
2111 ("liblo" ,liblo)
2112 ("lame" ,lame)
2113 ("libsndfile" ,libsndfile)))
2114 (home-page "https://github.com/kmatheussen/jack_capture")
2115 (synopsis "Program for recording sound files with JACK")
2116 (description "This is a program for recording sound files with JACK. It
2117 can connect to any JACK port and record the output into a stereo WAV file.")
2118 (license license:gpl2+)))
2119
2120 (define-public cursynth
2121 (package
2122 (name "cursynth")
2123 (version "1.5")
2124 (source
2125 (origin
2126 (method url-fetch)
2127 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2128 version ".tar.gz"))
2129 (sha256
2130 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2131 (patches (search-patches "cursynth-wave-rand.patch"))))
2132 (build-system gnu-build-system)
2133 (native-inputs `(("pkg-config" ,pkg-config)))
2134 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2135 ;; prevents us from using pulseaudio
2136 (inputs `(("ncurses" ,ncurses)
2137 ("alsa" ,alsa-lib)))
2138 (home-page "https://www.gnu.org/software/cursynth/")
2139 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2140 (description "GNU cursynth is a polyphonic synthesizer that runs
2141 graphically in the terminal. It is built on a full-featured subtractive
2142 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2143 computer's keyboard.")
2144 (license license:gpl3+)))
2145
2146 (define-public aj-snapshot
2147 (package
2148 (name "aj-snapshot")
2149 (version "0.9.8")
2150 (source (origin
2151 (method url-fetch)
2152 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2153 "aj-snapshot-" version ".tar.bz2"))
2154 (sha256
2155 (base32
2156 "0wilky1g2mb88v2z0520s7sw1dsn10iwanc8id5p6z1xsnhg7b6p"))))
2157 (build-system gnu-build-system)
2158 (inputs
2159 `(("minixml" ,minixml)
2160 ("jack" ,jack-1)
2161 ("alsa-lib" ,alsa-lib)))
2162 (native-inputs
2163 `(("pkg-config" ,pkg-config)))
2164 (home-page "http://aj-snapshot.sourceforge.net/")
2165 (synopsis "Snapshot connections between ALSA and JACK clients")
2166 (description "Aj-snapshot is a small program that can be used to make
2167 snapshots of the connections made between JACK and/or ALSA clients. Because
2168 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2169 store both types of connections for JACK. ALSA, on the other hand, only
2170 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2171 from the command line.")
2172 (license license:gpl3+)))
2173
2174 (define-public qtractor
2175 (package
2176 (name "qtractor")
2177 (version "0.9.0")
2178 (source (origin
2179 (method url-fetch)
2180 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2181 "qtractor-" version ".tar.gz"))
2182 (sha256
2183 (base32
2184 "03892177k3jn2bsi366dhq28rcdsc1p9v5qqc0k6hg3cnrkh23na"))))
2185 (build-system gnu-build-system)
2186 (arguments `(#:tests? #f)) ; no "check" target
2187 (inputs
2188 `(("qt" ,qtbase)
2189 ("qtx11extras" ,qtx11extras)
2190 ("alsa-lib" ,alsa-lib)
2191 ("jack" ,jack-1)
2192 ("libsndfile" ,libsndfile)
2193 ("ladspa" ,ladspa)
2194 ("lv2" ,lv2)
2195 ("lilv" ,lilv)
2196 ("suil" ,suil)
2197 ("libsamplerate" ,libsamplerate)
2198 ("libvorbis" ,libvorbis)
2199 ("libmad" ,libmad)
2200 ("rubberband" ,rubberband)
2201 ("liblo" ,liblo)
2202 ("zlib" ,zlib)))
2203 (native-inputs
2204 `(("pkg-config" ,pkg-config)
2205 ("qttools" ,qttools)))
2206 (home-page "http://qtractor.org/")
2207 (synopsis "Audio/MIDI multi-track sequencer")
2208 (description
2209 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2210 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2211 follows a traditional multi-track tape recorder control paradigm.")
2212 (license license:gpl2+)))
2213
2214 (define-public ams-lv2
2215 (package
2216 (name "ams-lv2")
2217 (version "1.2.1")
2218 (source
2219 (origin
2220 (method url-fetch)
2221 (uri (string-append "https://github.com/blablack/ams-lv2/"
2222 "archive/" version ".tar.gz"))
2223 (file-name (string-append name "-" version ".tar.gz"))
2224 (sha256
2225 (base32
2226 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
2227 (build-system waf-build-system)
2228 (arguments
2229 `(#:phases
2230 (modify-phases %standard-phases
2231 (add-after 'unpack 'remove-sse-flags
2232 (lambda* (#:key system #:allow-other-keys)
2233 (when (not (or (string-prefix? "x86_64" system)
2234 (string-prefix? "i686" system)))
2235 (substitute* "wscript"
2236 (("'-msse', '-mfpmath=sse', ") ""))
2237 #t))))
2238 #:tests? #f)) ; no tests
2239 (inputs
2240 `(("lv2" ,lv2)
2241 ("lvtk" ,lvtk)
2242 ("gtkmm" ,gtkmm-2)
2243 ("gtk" ,gtk+-2)
2244 ("cairo" ,cairo)
2245 ("fftw" ,fftw)))
2246 (native-inputs
2247 `(("pkg-config" ,pkg-config)))
2248 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2249 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2250 (description "This set of LV2 plugins is a port of the internal modules
2251 found in Alsa Modular Synth. These plugins are used to create modular
2252 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2253 and hold, etc.")
2254 (license license:gpl2)))
2255
2256 (define-public gxtuner
2257 (package
2258 (name "gxtuner")
2259 (version "2.4")
2260 (source (origin
2261 (method url-fetch)
2262 (uri (string-append "https://github.com/brummer10/gxtuner/"
2263 "archive/v" version ".tar.gz"))
2264 (file-name (string-append name "-" version ".tar.gz"))
2265 (sha256
2266 (base32
2267 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
2268 (build-system gnu-build-system)
2269 (arguments
2270 `(#:make-flags
2271 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2272 (string-append "INCLUDE_L_DIR="
2273 (assoc-ref %build-inputs "zita-resampler")
2274 "/include/"))
2275 #:phases
2276 (modify-phases %standard-phases
2277 (delete 'configure))))
2278 (inputs
2279 `(("gtk+" ,gtk+)
2280 ("jack" ,jack-1)
2281 ("fftwf" ,fftwf)
2282 ("cairo" ,cairo)
2283 ("zita-resampler" ,zita-resampler)))
2284 (native-inputs
2285 `(("pkg-config" ,pkg-config)))
2286 (home-page "https://github.com/brummer10/gxtuner")
2287 (synopsis "Guitar tuner")
2288 (description "GXtuner is a simple guitar tuner for JACK with an
2289 analogue-like user interface.")
2290 (license license:gpl2+)))
2291
2292 (define-public mod-host
2293 ;; The last release was in 2014 but since then hundreds of commits have
2294 ;; been made.
2295 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2296 (revision "3"))
2297 (package
2298 (name "mod-host")
2299 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2300 (source (origin
2301 (method git-fetch)
2302 (uri (git-reference
2303 (url "https://github.com/moddevices/mod-host")
2304 (commit commit)))
2305 (sha256
2306 (base32
2307 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
2308 (file-name (string-append name "-" version "-checkout"))))
2309 (build-system gnu-build-system)
2310 (arguments
2311 `(#:tests? #f ; no tests included
2312 #:make-flags
2313 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2314 "CC=gcc")
2315 #:phases
2316 (modify-phases %standard-phases
2317 (delete 'configure)
2318 (add-after 'unpack 'fix-jack-installation-directory
2319 (lambda _
2320 ;; Do not attempt to install files to output of "jack" package.
2321 (substitute* "Makefile"
2322 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2323 "lib"))
2324 #t)))))
2325 (inputs
2326 `(("lilv" ,lilv)
2327 ("fftw" ,fftw)
2328 ("fftwf" ,fftwf)
2329 ("lv2" ,lv2)
2330 ("jack" ,jack-1)
2331 ("readline" ,readline)))
2332 (native-inputs
2333 `(("pkg-config" ,pkg-config)
2334 ("python" ,python-2)))
2335 (home-page "https://github.com/moddevices/mod-host")
2336 (synopsis "LV2 host for Jack controllable via socket or command line")
2337 (description "mod-host is an LV2 plugin host for JACK, controllable via
2338 socket or command line.")
2339 (license license:gpl3+))))
2340
2341 (define-public curseradio
2342 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2343 (revision "1"))
2344 (package
2345 (name "curseradio")
2346 (version (git-version "0" revision commit))
2347 (source (origin
2348 (method git-fetch)
2349 (uri (git-reference
2350 (url "https://github.com/chronitis/curseradio.git")
2351 (commit commit)))
2352 (file-name (git-file-name name version))
2353 (sha256
2354 (base32
2355 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2356 (build-system python-build-system)
2357 (propagated-inputs
2358 `(("python-lxml" ,python-lxml)
2359 ("python-requests" ,python-requests)
2360 ("python-pyxdg" ,python-pyxdg)
2361 ("mpv" ,mpv)))
2362 (home-page "https://github.com/chronitis/curseradio")
2363 (synopsis "Command-line Internet radio player")
2364 (description "Curseradio is a Curses-based radio player that uses a
2365 tune-in sender list from @url{http://opml.radiotime.com}.")
2366 (license license:expat))))
2367
2368 (define-public pianobar
2369 (package
2370 (name "pianobar")
2371 (version "2016.06.02")
2372 (source (origin
2373 (method url-fetch)
2374 (uri (string-append "https://github.com/PromyLOPh/"
2375 name "/archive/" version ".tar.gz"))
2376 (file-name (string-append name "-" version ".tar.gz"))
2377 (sha256
2378 (base32
2379 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2380 (build-system gnu-build-system)
2381 (arguments
2382 `(#:tests? #f ; no tests
2383 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2384 (string-append "PREFIX=" %output))
2385 #:phases (modify-phases %standard-phases
2386 (delete 'configure))))
2387 (inputs
2388 `(("ao" ,ao)
2389 ("curl" ,curl)
2390 ("libgcrypt" ,libgcrypt)
2391 ("json-c" ,json-c)
2392 ("ffmpeg" ,ffmpeg-3.4)))
2393 (native-inputs
2394 `(("pkg-config" ,pkg-config)))
2395 (home-page "http://6xq.net/projects/pianobar/")
2396 (synopsis "Console-based pandora.com player")
2397 (description "pianobar is a console-based music player for the
2398 personalized online radio pandora.com. It has configurable keys for playing
2399 and managing stations, can be controlled remotely via fifo, and can run
2400 event-based scripts for scrobbling, notifications, etc.")
2401 (license license:expat)))
2402
2403 (define-public python-mutagen
2404 (package
2405 (name "python-mutagen")
2406 (version "1.38")
2407 (source (origin
2408 (method url-fetch)
2409 (uri (pypi-uri "mutagen" version))
2410 (sha256
2411 (base32
2412 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2413 (build-system python-build-system)
2414 (native-inputs
2415 `(("python-pytest" ,python-pytest)))
2416 (home-page "https://bitbucket.org/lazka/mutagen")
2417 (synopsis "Read and write audio tags")
2418 (description "Mutagen is a Python module to handle audio metadata. It
2419 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2420 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2421 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2422 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2423 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2424 streams on an individual packet/page level.")
2425 (license license:gpl2))) ; "later version" never mentioned
2426
2427 (define-public python2-mutagen
2428 (package-with-python2 python-mutagen))
2429
2430 (define-public python-musicbrainzngs
2431 (package
2432 (name "python-musicbrainzngs")
2433 (version "0.6")
2434 (source (origin
2435 (method url-fetch)
2436 (uri (pypi-uri "musicbrainzngs" version))
2437 (sha256
2438 (base32
2439 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2440 (build-system python-build-system)
2441 (arguments
2442 '(;; The tests fail suffer from race conditions:
2443 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2444 #:tests? #f))
2445 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2446 (synopsis "Python bindings for MusicBrainz NGS webservice")
2447 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2448 web service. This library can be used to retrieve music metadata from the
2449 MusicBrainz database.")
2450 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2451 (license (list license:bsd-2 license:isc))))
2452
2453 (define-public python2-musicbrainzngs
2454 (package-with-python2 python-musicbrainzngs))
2455
2456 (define-public python2-pyechonest
2457 (package
2458 (name "python2-pyechonest")
2459 (version "9.0.0")
2460 (source (origin
2461 (method url-fetch)
2462 (uri (pypi-uri "pyechonest" version))
2463 (sha256
2464 (base32
2465 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2466 (build-system python-build-system)
2467 (arguments
2468 `(;; Python 3 is not supported:
2469 ;; https://github.com/echonest/pyechonest/issues/42
2470 #:python ,python-2))
2471 (home-page "https://github.com/echonest/pyechonest")
2472 (synopsis "Python interface to The Echo Nest APIs")
2473 (description "Pyechonest is a Python library for the Echo Nest API. With
2474 Pyechonest you have Python access to the entire set of API methods including:
2475
2476 @enumerate
2477 @item artist - search for artists by name, description, or attribute, and get
2478 back detailed information about any artist including audio, similar artists,
2479 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2480 @item song - search songs by artist, title, description, or attribute (tempo,
2481 duration, etc) and get detailed information back about each song, such as
2482 hotttnesss, audio_summary, or tracks.
2483 @item track - upload a track to the Echo Nest and receive summary information
2484 about the track including key, duration, mode, tempo, time signature along with
2485 detailed track info including timbre, pitch, rhythm and loudness information.
2486 @end enumerate\n")
2487 (license license:bsd-3)))
2488
2489 (define-public python-pylast
2490 (package
2491 (name "python-pylast")
2492 (version "2.0.0")
2493 (source (origin
2494 (method url-fetch)
2495 (uri (pypi-uri "pylast" version))
2496 (sha256
2497 (base32
2498 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
2499 (build-system python-build-system)
2500 ;; Tests require network access. See
2501 ;; https://github.com/pylast/pylast/issues/105
2502 (arguments '(#:tests? #f))
2503 (native-inputs
2504 `(("python-coverage" ,python-coverage)
2505 ("python-pycodestyle" ,python-pycodestyle)
2506 ("python-mock" ,python-mock)
2507 ("python-pep8" ,python-pep8)
2508 ("python-pytest" ,python-pytest)
2509 ("python-flaky" ,python-flaky)
2510 ("python-pyflakes" ,python-pyflakes)
2511 ("python-pyyaml" ,python-pyyaml)))
2512 (propagated-inputs
2513 `(("python-six" ,python-six)))
2514 (home-page "https://github.com/pylast/pylast")
2515 (synopsis "Python interface to Last.fm and Libre.fm")
2516 (description "A Python interface to Last.fm and other API-compatible
2517 websites such as Libre.fm.")
2518 (license license:asl2.0)))
2519
2520 (define-public python2-pylast
2521 (package-with-python2 python-pylast))
2522
2523 (define-public instantmusic
2524 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2525 (revision "1"))
2526 (package
2527 (name "instantmusic")
2528 (version (git-version "1.0" revision commit))
2529 (source (origin
2530 (method git-fetch)
2531 (uri (git-reference
2532 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2533 (commit commit)))
2534 (file-name (git-file-name name version))
2535 (sha256
2536 (base32
2537 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2538 (build-system python-build-system)
2539 (propagated-inputs
2540 `(("python-requests" ,python-requests)
2541 ("eyed3" ,eyed3)
2542 ("python-beautifulsoup4" ,python-beautifulsoup4)
2543 ("youtube-dl" ,youtube-dl)))
2544 (arguments
2545 '(#:modules ((guix build python-build-system)
2546 (guix build utils)
2547 (srfi srfi-26))
2548 #:phases (modify-phases %standard-phases
2549 (add-before 'build 'change-directory
2550 (lambda _
2551 (chdir "instantmusic-0.1") #t))
2552 (add-before 'check 'fix-file-permissions
2553 (lambda _
2554 ;; Fix some read-only files that would cause a build failure
2555 (for-each (cut chmod <> #o644)
2556 (find-files "instantmusic.egg-info"
2557 "PKG-INFO|.*\\.txt"))
2558 #t)))))
2559 (home-page "http://iyask.me/Instant-Music-Downloader/")
2560 (synopsis "Command-line program to download a song from YouTube")
2561 (description "InstantMusic downloads a song from YouTube in MP3 format.
2562 Songs can be searched by artist, name or even by a part of the song text.")
2563 (license license:expat))))
2564
2565 (define-public beets
2566 (package
2567 (name "beets")
2568 (version "1.4.6")
2569 (source (origin
2570 (method url-fetch)
2571 (uri (pypi-uri "beets" version))
2572 (sha256
2573 (base32
2574 "0l2vfrknwcsm6bn83m7476qrz45qwgxcb5k0h7kn96kr70irn1v2"))))
2575 (build-system python-build-system)
2576 (arguments
2577 `(#:phases
2578 (modify-phases %standard-phases
2579 (add-after 'unpack 'set-HOME
2580 (lambda _
2581 (setenv "HOME" (string-append (getcwd) "/tmp"))
2582 #t))
2583 (replace 'check
2584 (lambda _
2585 (invoke "nosetests" "-v"))))))
2586 (native-inputs
2587 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2588 ("python-flask" ,python-flask)
2589 ("python-mock" ,python-mock)
2590 ("python-mpd2" ,python-mpd2)
2591 ("python-nose" ,python-nose)
2592 ("python-pathlib" ,python-pathlib)
2593 ("python-pyxdg" ,python-pyxdg)
2594 ("python-pylast" ,python-pylast)
2595 ("python-rarfile" ,python-rarfile)
2596 ("python-responses" ,python-responses)))
2597 ;; TODO: Install optional plugins and dependencies.
2598 (inputs
2599 `(("python-discogs-client" ,python-discogs-client)
2600 ("python-jellyfish" ,python-jellyfish)
2601 ("python-munkres" ,python-munkres)
2602 ("python-musicbrainzngs" ,python-musicbrainzngs)
2603 ("python-mutagen" ,python-mutagen)
2604 ("python-pyyaml" ,python-pyyaml)
2605 ("python-unidecode" ,python-unidecode)))
2606 (home-page "http://beets.io")
2607 (synopsis "Music organizer")
2608 (description "The purpose of beets is to get your music collection right
2609 once and for all. It catalogs your collection, automatically improving its
2610 metadata as it goes using the MusicBrainz database. Then it provides a variety
2611 of tools for manipulating and accessing your music.")
2612 (license license:expat)))
2613
2614 (define-public milkytracker
2615 (package
2616 (name "milkytracker")
2617 (version "1.01.00")
2618 (source (origin
2619 (method url-fetch)
2620 (uri (string-append "https://github.com/milkytracker/"
2621 "MilkyTracker/archive/v"
2622 version ".tar.gz"))
2623 (file-name (string-append name "-" version ".tar.gz"))
2624 (sha256
2625 (base32
2626 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2627 (modules '((guix build utils)))
2628 ;; Remove non-FSDG compliant sample songs.
2629 (snippet
2630 '(begin
2631 (delete-file-recursively "resources/music")
2632 (substitute* "CMakeLists.txt"
2633 (("add_subdirectory\\(resources/music\\)") ""))))))
2634 (build-system cmake-build-system)
2635 (arguments
2636 '(#:tests? #f ; no check target
2637 ;; This flag ensures that MilkyTracker links with the JACK library.
2638 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
2639 (inputs
2640 `(("alsa-lib" ,alsa-lib)
2641 ("jack" ,jack-1)
2642 ("sdl" ,sdl2)
2643 ("zlib" ,zlib)))
2644 (native-inputs
2645 `(("pkg-config" ,pkg-config)))
2646 (synopsis "Music tracker for working with .MOD/.XM module files")
2647 (description "MilkyTracker is a music application for creating .MOD and .XM
2648 module files. It attempts to recreate the module replay and user experience of
2649 the popular DOS program Fasttracker II, with special playback modes available
2650 for improved Amiga ProTracker 2/3 compatibility.")
2651 (home-page "http://milkytracker.titandemo.org/")
2652 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2653 (license (list license:bsd-3 license:gpl3+))))
2654
2655 (define-public schismtracker
2656 (package
2657 (name "schismtracker")
2658 (version "20170910")
2659 (source (origin
2660 (method url-fetch)
2661 (uri (string-append
2662 "https://github.com/" name "/" name "/archive/"
2663 version ".tar.gz"))
2664 (file-name (string-append name "-" version ".tar.gz"))
2665 (sha256
2666 (base32
2667 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
2668 (modules '((guix build utils)))
2669 (snippet
2670 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2671 `(substitute* "schism/version.c"
2672 (("Schism Tracker built %s %s.*$")
2673 (string-append "Schism Tracker version " ,version "\");"))))))
2674 (build-system gnu-build-system)
2675 (arguments
2676 `(#:phases
2677 (modify-phases %standard-phases
2678 (add-after 'unpack 'autoconf
2679 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2680 (add-before 'configure 'link-libm
2681 (lambda _ (setenv "LIBS" "-lm") #t)))))
2682 (native-inputs
2683 `(("autoconf" ,autoconf)
2684 ("automake" ,automake)
2685 ("python" ,python)))
2686 (inputs
2687 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2688 ("libx11" ,libx11)
2689 ("libxext" ,libxext)
2690 ("sdl" ,sdl)))
2691 (home-page "http://schismtracker.org")
2692 (synopsis "Oldschool sample-based music composition tool")
2693 (description
2694 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2695 create high quality music without the requirements of specialized, expensive
2696 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2697 part. The player is based on a highly modified version of the ModPlug engine,
2698 with a number of bugfixes and changes to improve IT playback.")
2699 (license license:gpl2+)))
2700
2701 (define-public sooperlooper
2702 (package
2703 (name "sooperlooper")
2704 (version "1.7.3")
2705 (source (origin
2706 (method url-fetch)
2707 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2708 version ".tar.gz"))
2709 (sha256
2710 (base32
2711 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2712 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2713 (build-system gnu-build-system)
2714 (arguments
2715 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2716 #:phases
2717 (modify-phases %standard-phases
2718 (add-after 'unpack 'add-sigc++-includes
2719 (lambda* (#:key inputs #:allow-other-keys)
2720 (let ((sig (assoc-ref inputs "libsigc++"))
2721 (xml (assoc-ref inputs "libxml2"))
2722 (cwd (getcwd)))
2723 (setenv "CPATH"
2724 (string-append sig "/include/sigc++-2.0:"
2725 sig "/lib/sigc++-2.0/include:"
2726 xml "/include/libxml2/:"
2727 cwd "/libs/pbd:"
2728 cwd "/libs/midi++")))
2729 (substitute* '("src/control_osc.hpp"
2730 "src/gui/app_frame.hpp"
2731 "src/gui/config_panel.hpp"
2732 "src/gui/keys_panel.hpp"
2733 "src/gui/latency_panel.hpp"
2734 "src/gui/main_panel.hpp"
2735 "src/gui/midi_bind_panel.hpp"
2736 "src/gui/prefs_dialog.hpp")
2737 (("sigc\\+\\+/object.h")
2738 "sigc++/sigc++.h"))
2739 (substitute* '("src/engine.cpp"
2740 "src/gui/latency_panel.cpp"
2741 "src/gui/looper_panel.cpp"
2742 "src/gui/main_panel.cpp")
2743 (("(\\(| )bind " _ pre)
2744 (string-append pre "sigc::bind ")))
2745 #t))
2746 (add-after 'unpack 'fix-xpm-warnings
2747 (lambda _
2748 (substitute* (find-files "." "\\.xpm$")
2749 (("static char") "static const char"))
2750 #t)))))
2751 (inputs
2752 `(("jack" ,jack-1)
2753 ("alsa-lib" ,alsa-lib)
2754 ("wxwidgets" ,wxwidgets-gtk2)
2755 ("libsndfile" ,libsndfile)
2756 ("libsamplerate" ,libsamplerate)
2757 ("liblo" ,liblo)
2758 ("rubberband" ,rubberband)
2759 ("libxml2" ,libxml2)
2760 ("libsigc++" ,libsigc++)
2761 ("ncurses" ,ncurses)))
2762 (native-inputs
2763 `(("pkg-config" ,pkg-config)))
2764 (home-page "http://essej.net/sooperlooper/")
2765 (synopsis "Live looping sampler")
2766 (description
2767 "SooperLooper is a live looping sampler capable of immediate loop
2768 recording, overdubbing, multiplying, reversing and more. It allows for
2769 multiple simultaneous multi-channel loops limited only by your computer's
2770 available memory.")
2771 (license license:gpl2+)))
2772
2773 (define-public moc
2774 (package
2775 (name "moc")
2776 (version "2.5.2")
2777 (source (origin
2778 (method url-fetch)
2779 (uri (string-append "http://ftp.daper.net/pub/soft/"
2780 name "/stable/"
2781 name "-" version ".tar.bz2"))
2782 (sha256
2783 (base32
2784 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
2785 (build-system gnu-build-system)
2786 (inputs
2787 `(("alsa-lib" ,alsa-lib)
2788 ("curl" ,curl)
2789 ("faad2" ,faad2)
2790 ("ffmpeg" ,ffmpeg-3.4)
2791 ("file" ,file)
2792 ("jack" ,jack-1)
2793 ("libid3tag" ,libid3tag)
2794 ("libltdl" ,libltdl)
2795 ("libmodplug" ,libmodplug)
2796 ("libmpcdec" ,libmpcdec)
2797 ("libmad" ,libmad)
2798 ("libogg" ,libogg)
2799 ("libvorbis" ,libvorbis)
2800 ("ncurses" ,ncurses)
2801 ("openssl" ,openssl)
2802 ("sasl" ,cyrus-sasl)
2803 ("speex" ,speex)
2804 ("taglib" ,taglib)
2805 ("wavpack" ,wavpack)
2806 ("zlib" ,zlib)))
2807 (native-inputs
2808 `(("pkg-config" ,pkg-config)))
2809 (synopsis "Console audio player designed to be powerful and easy to use")
2810 (description
2811 "Music on Console is a console audio player that supports many file
2812 formats, including most audio formats recognized by FFMpeg.")
2813 (home-page "http://moc.daper.net")
2814 (license license:gpl2+)))
2815
2816 (define-public midicsv
2817 (package
2818 (name "midicsv")
2819 (version "1.1")
2820 (source (origin
2821 (method url-fetch)
2822 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2823 name "-" version ".tar.gz"))
2824 (sha256
2825 (base32
2826 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2827 (build-system gnu-build-system)
2828 (arguments
2829 `(#:phases (modify-phases %standard-phases (delete 'configure))
2830 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2831 (synopsis "Convert MIDI files to and from CSV")
2832 (description
2833 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2834 value file (CSV), which preserves all the information in the MIDI file. The
2835 ASCII CSV file may be loaded into a spreadsheet or database application, or
2836 processed by a program to transform the MIDI data (for example, to key
2837 transpose a composition or extract a track from a multi-track sequence). A
2838 CSV file in the format created by midicsv may be converted back into a
2839 standard MIDI file with the csvmidi program.")
2840 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2841 (license license:public-domain)))
2842
2843 (define-public gx-guvnor-lv2
2844 (package
2845 (name "gx-guvnor-lv2")
2846 (version "0.1")
2847 (source (origin
2848 (method git-fetch)
2849 (uri (git-reference
2850 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2851 (commit (string-append "v" version))))
2852 (file-name (string-append name "-" version "-checkout"))
2853 (sha256
2854 (base32
2855 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
2856 (build-system gnu-build-system)
2857 (arguments
2858 `(;; The check target is used only to output a warning.
2859 #:tests? #f
2860 #:make-flags
2861 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2862 #:phases
2863 (modify-phases %standard-phases
2864 (replace 'configure
2865 (lambda _
2866 (substitute* "Makefile"
2867 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2868 (("install : all") "install :"))
2869 #t)))))
2870 (inputs
2871 `(("lv2" ,lv2)))
2872 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2873 (synopsis "Overdrive/distortion pedal simulation")
2874 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2875 simulation of an overdrive or distortion pedal for guitars.")
2876 ;; The LICENSE file says GPLv3 but the license headers in the files say
2877 ;; GPLv2 or later. The whole project is released under GPLv3 or later
2878 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
2879 (license license:gpl3+)))
2880
2881 (define-public gx-vbass-preamp-lv2
2882 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
2883 (revision "2"))
2884 (package (inherit gx-guvnor-lv2)
2885 (name "gx-vbass-preamp-lv2")
2886 (version (string-append "0-" revision "." (string-take commit 9)))
2887 (source (origin
2888 (method git-fetch)
2889 (uri (git-reference
2890 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2891 (commit commit)))
2892 (sha256
2893 (base32
2894 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
2895 (file-name (string-append name "-" version "-checkout"))))
2896 (inputs
2897 `(("lv2" ,lv2)
2898 ("gtk+" ,gtk+-2)))
2899 (native-inputs
2900 `(("pkg-config" ,pkg-config)))
2901 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2902 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2903 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2904 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2905 Section."))))
2906
2907 (define-public gx-overdriver-lv2
2908 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2909 (revision "1"))
2910 (package (inherit gx-guvnor-lv2)
2911 (name "gx-overdriver-lv2")
2912 (version (string-append "0-" revision "." (string-take commit 9)))
2913 (source (origin
2914 (method git-fetch)
2915 (uri (git-reference
2916 (url "https://github.com/brummer10/GxOverDriver.lv2")
2917 (commit commit)))
2918 (sha256
2919 (base32
2920 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2921 (file-name (string-append name "-" version "-checkout"))))
2922 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2923 (synopsis "Overdrive effect with level and tone control")
2924 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2925 overdrive effect."))))
2926
2927 (define-public gx-tone-mender-lv2
2928 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2929 (revision "1"))
2930 (package (inherit gx-guvnor-lv2)
2931 (name "gx-tone-mender-lv2")
2932 (version (string-append "0-" revision "." (string-take commit 9)))
2933 (source (origin
2934 (method git-fetch)
2935 (uri (git-reference
2936 (url "https://github.com/brummer10/GxToneMender.lv2")
2937 (commit commit)))
2938 (sha256
2939 (base32
2940 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2941 (file-name (string-append name "-" version "-checkout"))))
2942 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2943 (synopsis "Clean boost with a 3-knob tonestack")
2944 (description "This package provides the LV2 plugin \"GxToneMender\", a
2945 clean boost effect with a 3-knob tonestack."))))
2946
2947 (define-public gx-push-pull-lv2
2948 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2949 (revision "1"))
2950 (package (inherit gx-guvnor-lv2)
2951 (name "gx-push-pull-lv2")
2952 (version (string-append "0-" revision "." (string-take commit 9)))
2953 (source (origin
2954 (method git-fetch)
2955 (uri (git-reference
2956 (url "https://github.com/brummer10/GxPushPull.lv2")
2957 (commit commit)))
2958 (sha256
2959 (base32
2960 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2961 (file-name (string-append name "-" version "-checkout"))))
2962 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2963 (synopsis "Octave up push pull transistor fuzz simulation")
2964 (description "This package provides the LV2 plugin \"GxPushPull\", a
2965 simulation of a push pull transistor fuzz effect with added high octave."))))
2966
2967 (define-public gx-suppa-tone-bender-lv2
2968 (package (inherit gx-guvnor-lv2)
2969 (name "gx-suppa-tone-bender-lv2")
2970 (version "0.1")
2971 (source (origin
2972 (method git-fetch)
2973 (uri (git-reference
2974 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
2975 (commit (string-append "v" version))))
2976 (file-name (string-append name "-" version "-checkout"))
2977 (sha256
2978 (base32
2979 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
2980 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2981 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2982 (description "This package provides the LV2 plugin
2983 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2984 pedal.")))
2985
2986 (define-public gx-saturator-lv2
2987 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
2988 (revision "3"))
2989 (package (inherit gx-vbass-preamp-lv2)
2990 (name "gx-saturator-lv2")
2991 (version (string-append "0-" revision "." (string-take commit 9)))
2992 (source (origin
2993 (method git-fetch)
2994 (uri (git-reference
2995 (url "https://github.com/brummer10/GxSaturator.lv2")
2996 (commit commit)))
2997 (sha256
2998 (base32
2999 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
3000 (file-name (string-append name "-" version "-checkout"))))
3001 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3002 (synopsis "Saturation effect")
3003 (description "This package provides the LV2 plugin \"GxSaturator\", a
3004 saturation effect."))))
3005
3006 (define-public gx-hyperion-lv2
3007 (package (inherit gx-guvnor-lv2)
3008 (name "gx-hyperion-lv2")
3009 (version "0.1")
3010 (source (origin
3011 (method git-fetch)
3012 (uri (git-reference
3013 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3014 (commit (string-append "v" version))))
3015 (file-name (string-append name "-" version "-checkout"))
3016 (sha256
3017 (base32
3018 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3019 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3020 (synopsis "Simulation of the Hyperion Fuzz pedal")
3021 (description "This package provides the LV2 plugin \"GxHyperion\", a
3022 simulation of the Hyperion Fuzz pedal.")))
3023
3024 (define-public gx-voodoo-fuzz-lv2
3025 (package (inherit gx-guvnor-lv2)
3026 (name "gx-voodoo-fuzz-lv2")
3027 (version "0.1")
3028 (source (origin
3029 (method git-fetch)
3030 (uri (git-reference
3031 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3032 (commit (string-append "v" version))))
3033 (file-name (string-append name "-" version "-checkout"))
3034 (sha256
3035 (base32
3036 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3037 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3038 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3039 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3040 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3041 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3042 parallel with a DarkBooster, followed by a volume control.")))
3043
3044 (define-public gx-super-fuzz-lv2
3045 (package (inherit gx-guvnor-lv2)
3046 (name "gx-super-fuzz-lv2")
3047 (version "0.1")
3048 (source (origin
3049 (method git-fetch)
3050 (uri (git-reference
3051 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3052 (commit (string-append "v" version))))
3053 (file-name (string-append name "-" version "-checkout"))
3054 (sha256
3055 (base32
3056 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3057 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3058 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3059 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3060 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3061 pot, which is usually in the housing, is exposed as a control parameter. It
3062 adjusts the amount of harmonics.")))
3063
3064 (define-public gx-vintage-fuzz-master-lv2
3065 (package (inherit gx-guvnor-lv2)
3066 (name "gx-vintage-fuzz-master-lv2")
3067 (version "0.1")
3068 (source (origin
3069 (method git-fetch)
3070 (uri (git-reference
3071 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3072 (commit (string-append "v" version))))
3073 (file-name (string-append name "-" version "-checkout"))
3074 (sha256
3075 (base32
3076 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3077 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3078 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3079 (description "This package provides the LV2 plugin
3080 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3081
3082 (define-public gx-slow-gear-lv2
3083 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3084 (revision "3"))
3085 (package (inherit gx-vbass-preamp-lv2)
3086 (name "gx-slow-gear-lv2")
3087 (version (string-append "0-" revision "." (string-take commit 9)))
3088 (source (origin
3089 (method git-fetch)
3090 (uri (git-reference
3091 (url "https://github.com/brummer10/GxSlowGear.lv2")
3092 (commit commit)))
3093 (sha256
3094 (base32
3095 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3096 (file-name (string-append name "-" version "-checkout"))))
3097 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3098 (synopsis "Slow gear audio effect")
3099 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3100 slow gear audio effect to produce volume swells."))))
3101
3102 (define-public gx-switchless-wah-lv2
3103 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3104 (revision "2"))
3105 (package (inherit gx-guvnor-lv2)
3106 (name "gx-switchless-wah-lv2")
3107 (version (string-append "0-" revision "." (string-take commit 9)))
3108 (source (origin
3109 (method git-fetch)
3110 (uri (git-reference
3111 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3112 (commit commit)))
3113 (sha256
3114 (base32
3115 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3116 (file-name (string-append name "-" version "-checkout"))))
3117 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3118 (synopsis "Wah emulation with switchless activation")
3119 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3120 a simulation of an analog Wah pedal with switchless activation."))))
3121
3122 (define-public mod-utilities
3123 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3124 (revision "2"))
3125 (package
3126 (name "mod-utilities")
3127 (version (string-append "0-" revision "." (string-take commit 9)))
3128 (source (origin
3129 (method git-fetch)
3130 (uri (git-reference
3131 (url "https://github.com/moddevices/mod-utilities.git")
3132 (commit commit)))
3133 (file-name (string-append name "-" version "-checkout"))
3134 (sha256
3135 (base32
3136 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
3137 (build-system gnu-build-system)
3138 (arguments
3139 `(#:tests? #f ; there are no tests
3140 #:make-flags
3141 (list (string-append "INSTALL_PATH="
3142 (assoc-ref %outputs "out")
3143 "/lib/lv2")
3144 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3145 "CC=gcc")
3146 #:phases
3147 (modify-phases %standard-phases
3148 (delete 'configure))))
3149 (inputs
3150 `(("lv2" ,lv2)))
3151 (home-page "https://github.com/moddevices/mod-utilities")
3152 (synopsis "LV2 utility plugins")
3153 (description "This package provides LV2 audio utility plugins, such as
3154 filters, crossovers, simple gain plugins without zipper noise, switch box
3155 plugins, a switch trigger, a toggle switch, and a peakmeter.")
3156 (license license:gpl2+))))
3157
3158 (define-public ingen
3159 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3160 (revision "2"))
3161 (package
3162 (name "ingen")
3163 (version (string-append "0.0.0-" revision "."
3164 (string-take commit 9)))
3165 (source
3166 (origin
3167 (method git-fetch)
3168 (uri (git-reference
3169 (url "http://git.drobilla.net/ingen.git")
3170 (commit commit)))
3171 (file-name (string-append name "-" version "-checkout"))
3172 (sha256
3173 (base32
3174 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
3175 (build-system waf-build-system)
3176 (arguments
3177 `(#:tests? #f ; no "check" target
3178 #:configure-flags (list "--no-webkit")
3179 #:phases
3180 (modify-phases %standard-phases
3181 (add-after 'unpack 'patch-wscript
3182 (lambda* (#:key outputs #:allow-other-keys)
3183 (let ((out (assoc-ref outputs "out")))
3184 (substitute* "wscript"
3185 ;; FIXME: Our version of lv2specgen.py does not behave as
3186 ;; expected. Maybe this requires a development version of
3187 ;; LV2.
3188 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3189 ;; Add libraries to RUNPATH.
3190 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3191 (string-append prefix
3192 "linkflags=[\"-Wl,-rpath="
3193 out "/lib" "\"]," line)))
3194 (substitute* '("src/wscript"
3195 "src/server/wscript")
3196 ;; Add libraries to RUNPATH.
3197 (("bld.env.PTHREAD_LINKFLAGS" line)
3198 (string-append line
3199 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3200 (substitute* "src/client/wscript"
3201 ;; Add libraries to RUNPATH.
3202 (("^(.+)target.*= 'ingen_client'," line prefix)
3203 (string-append prefix
3204 "linkflags=[\"-Wl,-rpath="
3205 out "/lib" "\"]," line)))
3206 (substitute* "src/gui/wscript"
3207 ;; Add libraries to RUNPATH.
3208 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3209 (string-append prefix
3210 "linkflags=[\"-Wl,-rpath="
3211 out "/lib" "\"]," line))))
3212 #t)))))
3213 (inputs
3214 `(("boost" ,boost)
3215 ("python-rdflib" ,python-rdflib)
3216 ("python" ,python)
3217 ("jack" ,jack-1)
3218 ("lv2" ,lv2-devel)
3219 ("lilv" ,lilv)
3220 ("raul" ,raul-devel)
3221 ("ganv" ,ganv-devel)
3222 ("suil" ,suil)
3223 ("serd" ,serd)
3224 ("sord" ,sord)
3225 ("sratom" ,sratom)
3226 ("gtkmm" ,gtkmm-2)))
3227 (native-inputs
3228 `(("pkg-config" ,pkg-config)
3229 ("python-pygments" ,python-pygments)))
3230 (home-page "http://drobilla.net/software/ingen")
3231 (synopsis "Modular audio processing system")
3232 (description "Ingen is a modular audio processing system for JACK and
3233 LV2 based systems. Ingen is built around LV2 technology and a strict
3234 separation of engine from user interface. The engine is controlled
3235 exclusively through a protocol, and can execute as a headless process, with an
3236 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3237 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3238 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3239 plugin on any system where Ingen is installed. This allows users to visually
3240 develop custom plugins for use in other applications without programming.")
3241 (license license:agpl3+))))
3242
3243 (define-public qmidiarp
3244 (package
3245 (name "qmidiarp")
3246 (version "0.6.5")
3247 (source (origin
3248 (method url-fetch)
3249 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3250 version "/qmidiarp-" version ".tar.bz2"))
3251 (sha256
3252 (base32
3253 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
3254 (build-system gnu-build-system)
3255 (arguments
3256 `(#:configure-flags
3257 (list "--enable-qt5"
3258 "CXXFLAGS=-std=gnu++11")))
3259 (inputs
3260 `(("qtbase" ,qtbase)
3261 ("alsa-lib" ,alsa-lib)
3262 ("jack" ,jack-1)
3263 ("liblo" ,liblo)
3264 ("lv2" ,lv2)))
3265 (native-inputs
3266 `(("pkg-config" ,pkg-config)
3267 ("qttools" ,qttools)))
3268 (home-page "http://qmidiarp.sourceforge.net/")
3269 (synopsis "MIDI arpeggiator")
3270 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3271 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3272 modules running in parallel.")
3273 (license license:gpl2+)))
3274
3275 (define-public qmidiroute
3276 (package
3277 (name "qmidiroute")
3278 (version "0.4.0")
3279 (source (origin
3280 (method url-fetch)
3281 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3282 version "/qmidiroute-" version ".tar.bz2"))
3283 (sha256
3284 (base32
3285 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3286 (build-system gnu-build-system)
3287 (arguments
3288 `(#:configure-flags
3289 (list "--enable-qt5"
3290 "CXXFLAGS=-std=gnu++11")))
3291 (inputs
3292 `(("qtbase" ,qtbase)
3293 ("alsa-lib" ,alsa-lib)))
3294 (native-inputs
3295 `(("pkg-config" ,pkg-config)
3296 ("qttools" ,qttools)))
3297 (home-page "http://alsamodular.sourceforge.net/")
3298 (synopsis "MIDI event router and filter")
3299 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3300 control change, program change and pitch bend events are logged, and can be
3301 filtered, redirected and transformed into other events according to MIDI maps
3302 defined as tabs in the main control surface.")
3303 (license license:gpl2+)))
3304
3305 (define-public seq24
3306 (package
3307 (name "seq24")
3308 (version "0.9.3")
3309 (source (origin
3310 (method url-fetch)
3311 (uri (string-append "https://launchpad.net/seq24/trunk/"
3312 version "/+download/seq24-"
3313 version ".tar.bz2"))
3314 (sha256
3315 (base32
3316 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3317 (patches (search-patches "seq24-rename-mutex.patch"))))
3318 (build-system gnu-build-system)
3319 (arguments
3320 `(#:configure-flags
3321 (list "CXXFLAGS=-std=gnu++11")))
3322 (inputs
3323 `(("gtkmm" ,gtkmm-2)
3324 ("alsa-lib" ,alsa-lib)
3325 ("jack" ,jack-1)
3326 ("lash" ,lash)))
3327 (native-inputs
3328 `(("pkg-config" ,pkg-config)))
3329 (home-page "https://edge.launchpad.net/seq24/")
3330 (synopsis "Real-time MIDI sequencer")
3331 (description "Seq24 is a real-time MIDI sequencer. It was created to
3332 provide a very simple interface for editing and playing MIDI loops.")
3333 (license license:gpl2+)))
3334
3335 (define-public python-discogs-client
3336 (package
3337 (name "python-discogs-client")
3338 (version "2.2.1")
3339 (source (origin
3340 (method url-fetch)
3341 (uri (pypi-uri "discogs-client" version))
3342 (sha256
3343 (base32
3344 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3345 (build-system python-build-system)
3346 (propagated-inputs
3347 `(("python-oauthlib" ,python-oauthlib)
3348 ("python-requests" ,python-requests)))
3349 (native-inputs
3350 `(("python-six" ,python-six)))
3351 (home-page "https://github.com/discogs/discogs_client")
3352 (synopsis "Official Python client for the Discogs API")
3353 (description "This is the official Discogs API client for Python. It enables
3354 you to query the Discogs database for information on artists, releases, labels,
3355 users, Marketplace listings, and more. It also supports OAuth 1.0a
3356 authorization, which allows you to change user data such as profile information,
3357 collections and wantlists, inventory, and orders.")
3358 (license license:bsd-2)))
3359
3360 (define-public python2-discogs-client
3361 (package-with-python2 python-discogs-client))
3362
3363 (define-public libsmf
3364 (package
3365 (name "libsmf")
3366 (version "1.3")
3367 (source
3368 (origin
3369 (method url-fetch)
3370 ;; SF download page says development moved, but the link it points to
3371 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3372 ;; it but made no release so far (https://github.com/stump/libsmf).
3373 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3374 version "/libsmf-" version ".tar.gz"))
3375 (sha256
3376 (base32
3377 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3378 (build-system gnu-build-system)
3379 (outputs '("out"
3380 "static")) ; 88KiB of .a files
3381 (arguments
3382 `(#:phases
3383 (modify-phases %standard-phases
3384 (add-after 'install 'move-static-libraries
3385 (lambda* (#:key outputs #:allow-other-keys)
3386 ;; Move static libraries to the "static" output.
3387 (let* ((out (assoc-ref outputs "out"))
3388 (lib (string-append out "/lib"))
3389 (static (assoc-ref outputs "static"))
3390 (slib (string-append static "/lib")))
3391 (mkdir-p slib)
3392 (for-each (lambda (file)
3393 (install-file file slib)
3394 (delete-file file))
3395 (find-files lib "\\.a$"))
3396 #t))))))
3397 (inputs
3398 `(("readline" ,readline)
3399 ("glib" ,glib)))
3400 (native-inputs
3401 `(("doxygen" ,doxygen)
3402 ("pkg-config" ,pkg-config)))
3403 (home-page "http://libsmf.sourceforge.net/")
3404 (synopsis "Standard MIDI File format library")
3405 (description
3406 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3407 conversions between time and pulses, tempo map handling and more. The only dependencies
3408 are a C compiler and glib. Full API documentation and examples are included.")
3409 (license license:bsd-2)))
3410
3411 (define-public lmms
3412 (package
3413 (name "lmms")
3414 (version "1.1.3")
3415 (source
3416 (origin
3417 (method url-fetch)
3418 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3419 version ".tar.gz"))
3420 (file-name (string-append name "-" version ".tar.gz"))
3421 (sha256
3422 (base32
3423 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3424 (build-system cmake-build-system)
3425 (arguments
3426 `(#:tests? #f ; no tests
3427 #:phases
3428 (modify-phases %standard-phases
3429 (add-before 'configure 'set-ldflags
3430 (lambda* (#:key outputs #:allow-other-keys)
3431 (setenv "LDFLAGS"
3432 (string-append
3433 "-Wl,-rpath=\""
3434 (assoc-ref outputs "out") "/lib/lmms"
3435 ":"
3436 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3437 "\""))
3438 #t))
3439 (add-before 'configure 'remove-Werror
3440 (lambda _
3441 (substitute* "CMakeLists.txt"
3442 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3443 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3444 #t))
3445 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3446 (lambda* (#:key outputs #:allow-other-keys)
3447 (map (lambda (file)
3448 (make-file-writable file))
3449 (find-files (string-append (assoc-ref outputs "out")
3450 "/share/man")
3451 ".*\\.gz$"))
3452 #t)))))
3453 (native-inputs
3454 `(("pkg-config" ,pkg-config)))
3455 (inputs
3456 `(("sdl" ,sdl)
3457 ("qt" ,qt-4)
3458 ("fltk" ,fltk)
3459 ("libogg" ,libogg)
3460 ("libsamplerate" ,libsamplerate)
3461 ("fluidsynth" ,fluidsynth)
3462 ("libvorbis" ,libvorbis)
3463 ("alsa-lib" ,alsa-lib)
3464 ("portaudio" ,portaudio)
3465 ("ladspa" ,ladspa)
3466 ("libsndfile1" ,libsndfile)
3467 ("libxft" ,libxft)
3468 ("freetype2" ,freetype)
3469 ("fftw3f" ,fftwf)))
3470 (home-page "https://lmms.io/")
3471 (synopsis "Music composition tool")
3472 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3473 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3474 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3475 (license license:gpl2+)))
3476
3477 (define-public musescore
3478 (package
3479 (name "musescore")
3480 (version "2.2.1")
3481 (source (origin
3482 (method url-fetch)
3483 (uri (string-append
3484 "https://github.com/musescore/MuseScore/archive/"
3485 "v" version ".tar.gz"))
3486 (file-name (string-append name "-" version ".tar.gz"))
3487 (sha256
3488 (base32
3489 "1ml99ayzpdyd18cypcp0lbsbasfg3abw57i5fl7ph5739vikj6i6"))
3490 (modules '((guix build utils)))
3491 (snippet
3492 ;; Un-bundle OpenSSL and remove unused libraries.
3493 '(begin
3494 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3495 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3496 ""))
3497 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3498 (("#include <openssl/.*") ""))
3499 (for-each delete-file-recursively
3500 '("thirdparty/freetype"
3501 "thirdparty/openssl"
3502 "thirdparty/portmidi"))
3503 #t))))
3504 (build-system gnu-build-system)
3505 (arguments
3506 `(#:make-flags
3507 `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
3508 "USE_SYSTEM_FREETYPE=ON"
3509 "DOWNLOAD_SOUNDFONT=OFF")
3510 ;; There are tests, but no simple target to run. The command
3511 ;; used to run them is:
3512 ;;
3513 ;; make debug && sudo make installdebug && cd \
3514 ;; build.debug/mtest && make && ctest
3515 ;;
3516 ;; Basically, it requires to start a whole new build process.
3517 ;; So we simply skip them.
3518 #:tests? #f
3519 #:phases
3520 (modify-phases %standard-phases
3521 (delete 'configure))))
3522 (inputs
3523 `(("alsa-lib" ,alsa-lib)
3524 ("freetype" ,freetype)
3525 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3526 ("jack" ,jack-1)
3527 ("lame" ,lame)
3528 ("libogg" ,libogg)
3529 ("libsndfile" ,libsndfile)
3530 ("libvorbis" ,libvorbis)
3531 ("portaudio" ,portaudio)
3532 ("portmidi" ,portmidi)
3533 ("pulseaudio" ,pulseaudio)
3534 ("qtbase" ,qtbase)
3535 ("qtdeclarative" ,qtdeclarative)
3536 ("qtscript" ,qtscript)
3537 ("qtsvg" ,qtsvg)
3538 ("qtwebkit" ,qtwebkit)
3539 ("qtxmlpatterns" ,qtxmlpatterns)))
3540 (native-inputs
3541 `(("cmake" ,cmake)
3542 ("pkg-config" ,pkg-config)
3543 ("qttools" ,qttools)))
3544 (synopsis "Music composition and notation software")
3545 (description "MuseScore is a music score typesetter. Its main purpose is
3546 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3547
3548 It supports unlimited staves, linked parts and part extraction, tablature,
3549 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3550 lyrics (multiple verses), fretboard diagrams, and in general everything
3551 commonly used in sheet music. Style options and style sheets to change the
3552 appearance and layout are provided.
3553
3554 MuseScore can also play back scores through the built-in sequencer and SoundFont
3555 sample library.")
3556 (home-page "https://musescore.org")
3557 (license license:gpl2)))
3558
3559 (define-public muse-sequencer
3560 (package
3561 (name "muse-sequencer")
3562 (version "3.0.0")
3563 (source (origin
3564 (method git-fetch)
3565 (uri (git-reference
3566 (url "https://github.com/muse-sequencer/muse.git")
3567 (commit (string-append "muse_"
3568 (string-map (lambda (c)
3569 (if (char=? c #\.)
3570 #\_ c)) version)))))
3571 (file-name (string-append name "-" version "-checkout"))
3572 (sha256
3573 (base32
3574 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3575 (build-system cmake-build-system)
3576 (arguments
3577 `(#:tests? #f ; there is no test target
3578 #:configure-flags
3579 (list "-DENABLE_LV2_SUPPLIED=OFF"
3580 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3581 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3582 "-DENABLE_VST_NATIVE=OFF")
3583 #:phases
3584 (modify-phases %standard-phases
3585 (add-after 'unpack 'chdir
3586 (lambda _ (chdir "muse3"))))))
3587 (inputs
3588 `(("alsa-lib" ,alsa-lib)
3589 ("lash" ,lash)
3590 ("jack" ,jack-1)
3591 ("liblo" ,liblo)
3592 ("dssi" ,dssi)
3593 ("ladspa" ,ladspa)
3594 ("lv2" ,lv2)
3595 ("lilv" ,lilv)
3596 ("sord" ,sord)
3597 ("libsndfile" ,libsndfile)
3598 ("libsamplerate" ,libsamplerate)
3599 ("fluidsynth" ,fluidsynth)
3600 ("pcre" ,pcre)
3601 ("qtbase" ,qtbase)
3602 ("qtsvg" ,qtsvg)))
3603 (native-inputs
3604 `(("pkg-config" ,pkg-config)
3605 ("qttools" ,qttools)))
3606 (home-page "http://muse-sequencer.org")
3607 (synopsis "MIDI/Audio sequencer")
3608 (description "MusE is a MIDI/Audio sequencer with recording and editing
3609 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3610 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3611 list view, and a score editor. MusE aims to be a complete multitrack virtual
3612 studio.")
3613 (license license:gpl2+)))
3614
3615 (define-public dssi
3616 (package
3617 (name "dssi")
3618 (version "1.1.1")
3619 (source (origin
3620 (method url-fetch)
3621 (uri (string-append
3622 "mirror://sourceforge/dssi/dssi/" version
3623 "/dssi-" version ".tar.gz"))
3624 (sha256
3625 (base32
3626 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3627 (build-system gnu-build-system)
3628 (inputs
3629 `(("alsa-lib" ,alsa-lib)
3630 ("jack" ,jack-1)
3631 ("ladspa" ,ladspa)
3632 ("libsamplerate" ,libsamplerate)
3633 ("libsndfile" ,libsndfile)
3634 ("liblo" ,liblo)))
3635 (native-inputs
3636 `(("pkg-config" ,pkg-config)))
3637 (synopsis "Audio plugin API for soft synths and effects")
3638 (description "DSSI is a plugin API for software instruments with user
3639 interfaces, permitting them to be hosted in-process by audio applications.
3640 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3641 towards familiarity with MIDI. The DSSI distribution package contains
3642 a JACK/ALSA-sequencer reference host and some plugins as well as the
3643 specification and header.")
3644 (home-page "http://dssi.sourceforge.net/")
3645 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3646 ;; The vast majority of examples are in the public domain.
3647 (license (list license:lgpl2.1+ license:gpl2+))))
3648
3649 (define-public rosegarden
3650 (package
3651 (name "rosegarden")
3652 (version "17.04")
3653 (source (origin
3654 (method url-fetch)
3655 (uri (string-append
3656 "mirror://sourceforge/rosegarden/rosegarden/"
3657 version "/rosegarden-" version ".tar.bz2"))
3658 (sha256
3659 (base32
3660 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3661 (build-system cmake-build-system)
3662 (arguments
3663 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3664 #:phases
3665 (modify-phases %standard-phases
3666 (add-after 'unpack 'patch-tests
3667 (lambda _
3668 (substitute* "CMakeLists.txt"
3669 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3670 ;; Make tests work.
3671 ((" -fvisibility=hidden") ""))
3672 #t))
3673 (add-after 'unpack 'fix-references
3674 (lambda* (#:key inputs #:allow-other-keys)
3675 (substitute* "src/gui/general/ProjectPackager.cpp"
3676 (("\"flac\\>")
3677 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3678 (("\"wavpack\\>")
3679 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3680 (("\"wvunpack\\>")
3681 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3682 (("\"bash\\>")
3683 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3684 (("\"tar\\>")
3685 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3686 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3687 (("\"convert-ly\\>")
3688 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3689 (("\"lilypond\\>")
3690 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3691 #t))
3692 (add-after 'unpack 'make-reproducible
3693 (lambda _
3694 ;; Prevent Last-Modified from being written.
3695 ;; The "*.qm" files that are used in locale.qrc would have a new
3696 ;; mtime otherwise that is written into qrc_locale.cpp in the
3697 ;; end - except when we disable it.
3698 (substitute* "src/CMakeLists.txt"
3699 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3700 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3701 ;; Extraneous.
3702 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3703 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3704 )
3705 ;; Make hashtable traversal order predicable.
3706 (setenv "QT_RCC_TEST" "1") ; important
3707 #t))
3708 (add-before 'check 'prepare-check
3709 (lambda _
3710 (setenv "QT_QPA_PLATFORM" "offscreen")
3711 ;; Tests create files in $HOME/.local/share/rosegarden .
3712 (mkdir-p "/tmp/foo")
3713 (setenv "HOME" "/tmp/foo")
3714 #t)))))
3715 (inputs
3716 `(("alsa-lib" ,alsa-lib)
3717 ("bash" ,bash)
3718 ("dssi" ,dssi)
3719 ("flac" ,flac)
3720 ("fftwf" ,fftwf)
3721 ("jack" ,jack-1)
3722 ("ladspa" ,ladspa)
3723 ("liblo" ,liblo)
3724 ("libsamplerate" ,libsamplerate)
3725 ("lilypond" ,lilypond)
3726 ("lrdf" ,lrdf)
3727 ("qtbase" ,qtbase)
3728 ("tar" ,tar)
3729 ("lirc" ,lirc)
3730 ("wavpack" ,wavpack)
3731 ("zlib" ,zlib)))
3732 (native-inputs
3733 `(("pkg-config" ,pkg-config)
3734 ("qtlinguist" ,qttools)))
3735 (synopsis "Music composition and editing environment based around a MIDI
3736 sequencer")
3737 (description "Rosegarden is a music composition and editing environment
3738 based around a MIDI sequencer that features a rich understanding of music
3739 notation and includes basic support for digital audio.")
3740 (home-page "http://www.rosegardenmusic.com/")
3741 (license license:gpl2)))
3742
3743 (define-public patchmatrix
3744 (package
3745 (name "patchmatrix")
3746 (version "0.12.0")
3747 (source (origin
3748 (method git-fetch)
3749 (uri (git-reference
3750 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3751 (commit version)))
3752 (file-name (string-append "patchmatrix-" version "-checkout"))
3753 (sha256
3754 (base32
3755 "19ivp7h5vq6r1qhmycjxzvrgg7fc4a3v5vb3n4c7afs4z3pj53zi"))))
3756 (build-system cmake-build-system)
3757 (arguments '(#:tests? #f)) ; no test target
3758 (inputs
3759 `(("jack" ,jack-1)
3760 ("lv2" ,lv2)
3761 ("mesa" ,mesa)))
3762 (native-inputs
3763 `(("pkg-config" ,pkg-config)))
3764 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3765 (synopsis "Simple JACK patch bay")
3766 (description "PatchMatrix is a patch bay for the JACK audio connection
3767 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3768 OSC connections.")
3769 (license license:artistic2.0)))
3770
3771 (define-public sorcer
3772 (package
3773 (name "sorcer")
3774 (version "1.1.3")
3775 (source (origin
3776 (method url-fetch)
3777 (uri (string-append "https://github.com/openAVproductions/"
3778 "openAV-Sorcer/archive/release-"
3779 version ".tar.gz"))
3780 (file-name (string-append name "-" version ".tar.gz"))
3781 (sha256
3782 (base32
3783 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3784 (build-system cmake-build-system)
3785 (arguments
3786 `(#:tests? #f ; no tests included
3787 #:phases
3788 (modify-phases %standard-phases
3789 (add-after 'unpack 'remove-architecture-specific-flags
3790 (lambda _
3791 (substitute* "CMakeLists.txt"
3792 (("-msse2 -mfpmath=sse") ""))
3793 #t))
3794 (add-after 'unpack 'build-faust-sources
3795 (lambda* (#:key inputs #:allow-other-keys)
3796 (with-directory-excursion "faust"
3797 (delete-file "main.cpp")
3798 (zero? (system* "faust" "-i"
3799 "-a" "lv2synth.cpp"
3800 "-o" "main.cpp" "main.dsp"))))))))
3801 (inputs
3802 `(("boost" ,boost)
3803 ("lv2" ,lv2)
3804 ("ntk" ,ntk)))
3805 (native-inputs
3806 `(("faust" ,faust)
3807 ("pkg-config" ,pkg-config)))
3808 (home-page "http://openavproductions.com/sorcer/")
3809 (synopsis "Wavetable LV2 plugin synth")
3810 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3811 the electronic or dubstep genre.")
3812 (license license:gpl3+)))
3813
3814 (define-public libmygpo-qt
3815 (package
3816 (name "libmygpo-qt")
3817 (version "1.1.0")
3818 (source (origin
3819 (method url-fetch)
3820 (uri (string-append "http://stefan.derkits.at/files/"
3821 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3822 (sha256
3823 (base32
3824 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3825 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3826 "libmygpo-qt-missing-qt5-modules.patch"))))
3827 (build-system cmake-build-system)
3828 (native-inputs
3829 `(("pkg-config" ,pkg-config)))
3830 (inputs
3831 `(("qt" ,qtbase)))
3832 (arguments
3833 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
3834 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
3835 ;; is fixed.
3836 #:tests? #f))
3837 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
3838 (synopsis "Qt/C++ library wrapping the gpodder web service")
3839 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
3840 @url{https://gpodder.net} APIs. It allows applications to discover, manage
3841 and track podcasts.")
3842 (license license:lgpl2.1+)))
3843
3844 (define-public sonivox-eas
3845 (package
3846 (name "sonivox-eas")
3847 (version "1.1.0")
3848 (source (origin
3849 (method git-fetch)
3850 (uri (git-reference
3851 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
3852 (commit (string-append "v" version))))
3853 (file-name (string-append name "-" version "-checkout"))
3854 (sha256
3855 (base32
3856 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
3857 (build-system cmake-build-system)
3858 (arguments '(#:tests? #f)) ; there are no tests
3859 (inputs
3860 `(("alsa-lib" ,alsa-lib)
3861 ("drumstick" ,drumstick)
3862 ("pulseaudio" ,pulseaudio)
3863 ("qtbase" ,qtbase)))
3864 (native-inputs
3865 `(("pkg-config" ,pkg-config)))
3866 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
3867 (synopsis "MIDI synthesizer library")
3868 (description "This project is a real time General MIDI synthesizer based
3869 on the Sonivox EAS Synthesizer by Google. It does not need external
3870 soundfonts, using embedded samples instead.")
3871 ;; Sonivox is released under the ASL2.0; the rest of the code is under
3872 ;; GPLv2+.
3873 (license (list license:gpl2+ license:asl2.0))))
3874
3875 (define-public whysynth
3876 (package
3877 (name "whysynth")
3878 (version "20170701")
3879 (source (origin
3880 (method url-fetch)
3881 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
3882 version ".tar.bz2"))
3883 (sha256
3884 (base32
3885 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
3886 (build-system gnu-build-system)
3887 (inputs
3888 `(("dssi" ,dssi)
3889 ("liblo" ,liblo)
3890 ("fftwf" ,fftwf)
3891 ("gtk+" ,gtk+-2)
3892 ("ladspa" ,ladspa)
3893 ("alsa-lib" ,alsa-lib)))
3894 (native-inputs
3895 `(("pkg-config" ,pkg-config)))
3896 (home-page "http://smbolton.com/whysynth.html")
3897 (synopsis "DSSI software synthesizer")
3898 (description "WhySynth is a versatile softsynth which operates as a plugin
3899 for the DSSI Soft Synth Interface. A brief list of features:
3900
3901 @enumerate
3902 @item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
3903 @item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
3904 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
3905 distortion.
3906 @item 10 filter modes.
3907 @item flexible modulation and mixdown options, plus effects.
3908 @end enumerate
3909 ")
3910 (license license:gpl2+)))
3911
3912 (define-public libdiscid
3913 (package
3914 (name "libdiscid")
3915 (version "0.6.2")
3916 (source
3917 (origin
3918 (method url-fetch)
3919 (uri (string-append
3920 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
3921 version ".tar.gz"))
3922 (sha256
3923 (base32
3924 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
3925 (arguments `(#:test-target "check"))
3926 (build-system cmake-build-system)
3927 (home-page "https://musicbrainz.org/doc/libdiscid")
3928 (synopsis "Disc id reader library")
3929 (description "libdiscid is a C library for creating MusicBrainz and freedb
3930 disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
3931 an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
3932 it provides a submission URL for adding the disc ID to the database and gathers
3933 ISRCs and the MCN (=UPC/EAN) from disc.")
3934 (license license:lgpl2.1+)))
3935
3936 (define-public libmusicbrainz
3937 (package
3938 (name "libmusicbrainz")
3939 (version "5.1.0")
3940 (source
3941 (origin
3942 (method url-fetch)
3943 (uri (string-append
3944 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
3945 version "/libmusicbrainz-" version ".tar.gz"))
3946 (sha256
3947 (base32
3948 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
3949 (build-system cmake-build-system)
3950 (arguments `(#:phases
3951 (modify-phases %standard-phases
3952 (replace 'check
3953 (lambda _
3954 (and
3955 ;; requires network connections
3956 ;; (zero? (system* "tests/mbtest"))
3957 (zero? (system* "tests/ctest"))))))))
3958 (inputs `(("neon" ,neon)
3959 ("libxml2" ,libxml2)))
3960 (native-inputs `(("pkg-config" ,pkg-config)))
3961 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
3962 (synopsis "MusicBrainz client library")
3963 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
3964 mb_client, is a development library geared towards developers who wish to add
3965 MusicBrainz lookup capabilities to their applications.")
3966 (license license:lgpl2.1+)))