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