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