2015-03-11 07:27:14 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
2015-10-19 13:18:09 +02:00
|
|
|
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
2015-03-11 07:27:14 +01:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages music)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2015-07-17 08:47:54 +02:00
|
|
|
#:use-module (guix git-download)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix build-system gnu)
|
2015-06-04 10:01:11 +02:00
|
|
|
#:use-module (guix build-system cmake)
|
2015-08-26 23:25:31 +02:00
|
|
|
#:use-module (guix build-system python)
|
2015-07-17 08:47:54 +02:00
|
|
|
#:use-module (guix build-system waf)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages)
|
2015-08-31 17:34:28 +02:00
|
|
|
#:use-module (gnu packages algebra)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages audio)
|
2015-08-06 19:18:54 +02:00
|
|
|
#:use-module (gnu packages autotools)
|
2015-06-04 10:01:11 +02:00
|
|
|
#:use-module (gnu packages base) ;libbdf
|
|
|
|
#:use-module (gnu packages boost)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages bison)
|
2015-10-19 13:18:09 +02:00
|
|
|
#:use-module (gnu packages cdrom)
|
2015-06-04 10:01:11 +02:00
|
|
|
#:use-module (gnu packages code)
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
#:use-module (gnu packages compression)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages docbook)
|
|
|
|
#:use-module (gnu packages flex)
|
2015-07-17 08:47:54 +02:00
|
|
|
#:use-module (gnu packages fltk)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages fonts)
|
|
|
|
#:use-module (gnu packages fontutils)
|
2015-04-19 18:39:25 +02:00
|
|
|
#:use-module (gnu packages gcc)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
#:use-module (gnu packages ghostscript)
|
2015-06-18 17:37:47 +02:00
|
|
|
#:use-module (gnu packages gl)
|
2015-07-17 08:47:54 +02:00
|
|
|
#:use-module (gnu packages glib)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages gnome)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
#:use-module (gnu packages guile)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages image)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages imagemagick)
|
2015-04-19 18:39:25 +02:00
|
|
|
#:use-module (gnu packages java)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages linux) ; for alsa-utils
|
|
|
|
#:use-module (gnu packages man)
|
|
|
|
#:use-module (gnu packages mp3)
|
2015-10-19 13:18:09 +02:00
|
|
|
#:use-module (gnu packages ncurses)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages netpbm)
|
2015-08-26 23:25:31 +02:00
|
|
|
#:use-module (gnu packages pdf)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-06-29 18:26:43 +02:00
|
|
|
#:use-module (gnu packages pulseaudio) ;libsndfile
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages python)
|
2015-06-04 10:01:11 +02:00
|
|
|
#:use-module (gnu packages qt)
|
2015-06-29 18:26:43 +02:00
|
|
|
#:use-module (gnu packages rdf)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages rsync)
|
2015-08-06 19:18:54 +02:00
|
|
|
#:use-module (gnu packages tcl)
|
2015-03-11 07:27:14 +01:00
|
|
|
#:use-module (gnu packages texinfo)
|
|
|
|
#:use-module (gnu packages texlive)
|
2015-10-19 13:18:09 +02:00
|
|
|
#:use-module (gnu packages video)
|
2015-06-04 10:01:11 +02:00
|
|
|
#:use-module (gnu packages web)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages xml)
|
2015-08-31 17:34:28 +02:00
|
|
|
#:use-module (gnu packages xorg)
|
2015-03-11 09:02:34 +01:00
|
|
|
#:use-module (gnu packages xiph)
|
2015-08-06 19:18:54 +02:00
|
|
|
#:use-module (gnu packages zip)
|
|
|
|
#:use-module ((srfi srfi-1) #:select (last)))
|
2015-03-11 07:27:14 +01:00
|
|
|
|
2015-10-19 13:18:09 +02:00
|
|
|
(define-public cmus
|
|
|
|
(package
|
|
|
|
(name "cmus")
|
|
|
|
(version "2.7.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/" name "/" name "/archive/v"
|
|
|
|
version ".tar.gz"))
|
2015-10-22 11:21:51 +02:00
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2015-10-19 13:18:09 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; cmus does not include tests
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace
|
|
|
|
'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
|
|
|
;; It's an idiosyncratic configure script that doesn't
|
|
|
|
;; understand --prefix=..; it wants prefix=.. instead.
|
|
|
|
(zero?
|
|
|
|
(system* "./configure"
|
|
|
|
(string-append "prefix=" out)))))))))
|
|
|
|
;; TODO: cmus optionally supports the following formats, which haven't yet
|
|
|
|
;; been added to Guix:
|
|
|
|
;;
|
|
|
|
;; - Roar, libroar
|
|
|
|
;;
|
|
|
|
;; - DISCID_LIBS, apparently different from cd-discid which is included in
|
|
|
|
;; Guix. See <http://sourceforge.net/projects/discid/>
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
("ao" ,ao)
|
|
|
|
("ffmpeg" ,ffmpeg)
|
|
|
|
("flac" ,flac)
|
|
|
|
("jack" ,jack-1)
|
|
|
|
("libcddb" ,libcddb)
|
|
|
|
("libcdio-paranoia" ,libcdio-paranoia)
|
|
|
|
("libcue" ,libcue)
|
|
|
|
("libmad" ,libmad)
|
|
|
|
("libmodplug" ,libmodplug)
|
|
|
|
("libmpcdec" ,libmpcdec)
|
|
|
|
("libsamplerate" ,libsamplerate)
|
|
|
|
("libvorbis" ,libvorbis)
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("opusfile" ,opusfile)
|
|
|
|
("pulseaudio" ,pulseaudio)
|
|
|
|
("wavpack" ,wavpack)))
|
|
|
|
(home-page "https://cmus.github.io/")
|
|
|
|
(synopsis "Small console music player")
|
|
|
|
(description "Cmus is a small and fast console music player. It supports
|
|
|
|
many input formats and provides a customisable Vi-style user interface.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2015-06-29 18:26:43 +02:00
|
|
|
(define-public hydrogen
|
|
|
|
(package
|
|
|
|
(name "hydrogen")
|
|
|
|
(version "0.9.5.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://sourceforge/hydrogen/Hydrogen/"
|
|
|
|
(version-prefix version 3) "%20Sources/"
|
|
|
|
"hydrogen-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1fvyp6gfzcqcc90dmaqbm11p272zczz5pfz1z4lj33nfr7z0bqgb"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;no "check" target
|
|
|
|
#:phases
|
|
|
|
;; TODO: Add scons-build-system and use it here.
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(add-after 'unpack 'scons-propagate-environment
|
|
|
|
(lambda _
|
|
|
|
;; By design, SCons does not, by default, propagate
|
|
|
|
;; environment variables to subprocesses. See:
|
|
|
|
;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
|
|
|
|
;; Here, we modify the Sconstruct file to arrange for
|
|
|
|
;; environment variables to be propagated.
|
|
|
|
(substitute* "Sconstruct"
|
|
|
|
(("^env = Environment\\(")
|
|
|
|
"env = Environment(ENV=os.environ, "))))
|
|
|
|
(replace 'build
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(zero? (system* "scons"
|
|
|
|
(string-append "prefix=" out)
|
|
|
|
"lrdf=0" ; cannot be found
|
|
|
|
"lash=1")))))
|
|
|
|
(add-before
|
|
|
|
'install
|
|
|
|
'fix-img-install
|
|
|
|
(lambda _
|
|
|
|
;; The whole ./data/img directory is copied to the target first.
|
|
|
|
;; Scons complains about existing files when we try to install all
|
|
|
|
;; images a second time.
|
|
|
|
(substitute* "Sconstruct"
|
|
|
|
(("os.path.walk\\(\"./data/img/\",install_images,env\\)") ""))
|
|
|
|
#t))
|
|
|
|
(replace 'install (lambda _ (zero? (system* "scons" "install")))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("scons" ,scons)
|
|
|
|
("python" ,python-2)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("zlib" ,zlib)
|
|
|
|
("libtar" ,libtar)
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("jack" ,jack-1)
|
|
|
|
("lash" ,lash)
|
|
|
|
;;("lrdf" ,lrdf) ;FIXME: cannot be found by scons
|
|
|
|
("qt" ,qt-4)
|
|
|
|
("libsndfile" ,libsndfile)))
|
|
|
|
(home-page "http://www.hydrogen-music.org")
|
|
|
|
(synopsis "Drum machine")
|
|
|
|
(description
|
|
|
|
"Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
|
|
|
|
enable professional yet simple and intuitive pattern-based drum programming.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2015-07-19 18:37:15 +02:00
|
|
|
(define-public klick
|
|
|
|
(package
|
|
|
|
(name "klick")
|
|
|
|
(version "0.12.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://das.nasophon.de/download/klick-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;no "check" target
|
|
|
|
#:phases
|
|
|
|
;; TODO: Add scons-build-system and use it here.
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(replace 'build
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(mkdir-p out)
|
|
|
|
(zero? (system* "scons" (string-append "PREFIX=" out))))))
|
|
|
|
(replace 'install (lambda _ (zero? (system* "scons" "install")))))))
|
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
|
|
|
("jack" ,jack-1)
|
|
|
|
("libsndfile" ,libsndfile)
|
|
|
|
("libsamplerate" ,libsamplerate)
|
|
|
|
("liblo" ,liblo)
|
|
|
|
("rubberband" ,rubberband)))
|
|
|
|
(native-inputs
|
|
|
|
`(("scons" ,scons)
|
|
|
|
("python" ,python-2)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://das.nasophon.de/klick/")
|
|
|
|
(synopsis "Metronome for JACK")
|
|
|
|
(description
|
|
|
|
"klick is an advanced command-line based metronome for JACK. It allows
|
|
|
|
you to define complex tempo maps for entire songs or performances.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2015-03-11 07:27:14 +01:00
|
|
|
(define-public lilypond
|
|
|
|
(package
|
|
|
|
(name "lilypond")
|
2015-08-31 10:08:20 +02:00
|
|
|
(version "2.19.27")
|
2015-03-11 07:27:14 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"http://download.linuxaudio.org/lilypond/sources/v"
|
|
|
|
(version-major+minor version) "/"
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-08-31 10:08:20 +02:00
|
|
|
"11v4jr4qj1jpqvjw1ww7riv8pxfyasif8mf16l447f1xq1ifhkhs"))))
|
2015-03-11 07:27:14 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2015-08-31 10:08:20 +02:00
|
|
|
`(#:tests? #f ; out-test/collated-files.html fails
|
2015-03-11 07:27:14 +01:00
|
|
|
#:out-of-source? #t
|
2015-08-31 10:08:20 +02:00
|
|
|
#:configure-flags
|
|
|
|
(list (string-append "--with-texgyre-dir="
|
|
|
|
(assoc-ref %build-inputs "font-tex-gyre")
|
|
|
|
"/share/fonts/opentype/"))
|
2015-03-11 07:27:14 +01:00
|
|
|
#:phases
|
2015-10-11 11:24:20 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'hardcode-path-to-gs
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "scm/backend-library.scm"
|
|
|
|
(("\\(search-executable '\\(\"gs\"\\)\\)")
|
|
|
|
(string-append "\""
|
|
|
|
(assoc-ref inputs "ghostscript")
|
|
|
|
"/bin/gs"
|
|
|
|
"\"" )))
|
|
|
|
#t))
|
|
|
|
(add-before 'configure 'prepare-configuration
|
|
|
|
(lambda _
|
|
|
|
(substitute* "configure"
|
|
|
|
(("SHELL=/bin/sh") "SHELL=sh"))
|
|
|
|
(setenv "out" "")
|
|
|
|
#t)))))
|
2015-03-11 07:27:14 +01:00
|
|
|
(inputs
|
|
|
|
`(("guile" ,guile-1.8)
|
|
|
|
("font-dejavu" ,font-dejavu)
|
2015-08-31 10:08:20 +02:00
|
|
|
("font-tex-gyre" ,font-tex-gyre)
|
2015-03-11 07:27:14 +01:00
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
("freetype" ,freetype)
|
|
|
|
("ghostscript" ,ghostscript)
|
|
|
|
("pango" ,pango)
|
|
|
|
("python" ,python-2)))
|
|
|
|
(native-inputs
|
|
|
|
`(("bison" ,bison)
|
|
|
|
("perl" ,perl)
|
|
|
|
("flex" ,flex)
|
|
|
|
("fontforge" ,fontforge)
|
|
|
|
("dblatex" ,dblatex)
|
|
|
|
("gettext" ,gnu-gettext)
|
|
|
|
("imagemagick" ,imagemagick)
|
|
|
|
("netpbm" ,netpbm) ;for pngtopnm
|
|
|
|
("texlive" ,texlive) ;metafont and metapost
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
("texi2html" ,texi2html)
|
|
|
|
("rsync" ,rsync)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("zip" ,zip)))
|
|
|
|
(home-page "http://www.lilypond.org/")
|
|
|
|
(synopsis "Music typesetting")
|
|
|
|
(description
|
|
|
|
"GNU LilyPond is a music typesetter, which produces high-quality sheet
|
|
|
|
music. Music is input in a text file containing control sequences which are
|
|
|
|
interpreted by LilyPond to produce the final document. It is extendable with
|
|
|
|
Guile.")
|
|
|
|
(license license:gpl3+)))
|
2015-03-11 09:02:34 +01:00
|
|
|
|
2015-07-17 08:47:54 +02:00
|
|
|
(define-public non-sequencer
|
|
|
|
;; The latest tagged release is three years old and uses a custom build
|
|
|
|
;; system, so we take the last commit affecting the "sequencer" directory.
|
|
|
|
(let ((commit "1d9bd576"))
|
|
|
|
(package
|
|
|
|
(name "non-sequencer")
|
|
|
|
(version (string-append "1.9.5-" commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "git://git.tuxfamily.org/gitroot/non/non.git")
|
|
|
|
(commit commit)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0pkkw8q6d55j38xm7r4rwpdv1wy00a44h8c4wrn7vbgpq9nij46y"))
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
(build-system waf-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;no "check" target
|
2015-10-17 10:10:07 +02:00
|
|
|
#:configure-flags
|
|
|
|
(list "--project=sequencer"
|
|
|
|
;; Disable the use of SSE unless on x86_64.
|
|
|
|
,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
|
|
|
|
(%current-system))))
|
|
|
|
'("--disable-sse")
|
|
|
|
'()))
|
2015-10-27 13:01:35 +01:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before
|
|
|
|
'configure 'set-flags
|
|
|
|
(lambda _
|
|
|
|
;; Compile with C++11, required by libsigc++.
|
|
|
|
(setenv "CXXFLAGS" "-std=c++11")
|
|
|
|
#t)))
|
2015-07-17 08:47:54 +02:00
|
|
|
#:python ,python-2))
|
|
|
|
(inputs
|
|
|
|
`(("jack" ,jack-1)
|
|
|
|
("libsigc++" ,libsigc++)
|
|
|
|
("liblo" ,liblo)
|
|
|
|
("ntk" ,ntk)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
|
|
|
|
(synopsis "Pattern-based MIDI sequencer")
|
|
|
|
(description
|
|
|
|
"The Non Sequencer is a powerful, lightweight, real-time,
|
|
|
|
pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
|
|
|
|
MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
|
|
|
|
Sequencer happens on-line, in real-time. Music can be composed live, while the
|
|
|
|
transport is rolling.")
|
|
|
|
(license license:gpl2+))))
|
|
|
|
|
2015-03-11 09:02:34 +01:00
|
|
|
(define-public solfege
|
|
|
|
(package
|
|
|
|
(name "solfege")
|
|
|
|
(version "3.22.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://gnu/solfege/solfege-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; xmllint attempts to download DTD
|
|
|
|
#:test-target "test"
|
|
|
|
#:phases
|
|
|
|
(alist-cons-after
|
|
|
|
'unpack 'fix-configuration
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "default.config"
|
|
|
|
(("csound=csound")
|
|
|
|
(string-append "csound="
|
|
|
|
(assoc-ref inputs "csound")
|
|
|
|
"/bin/csound"))
|
|
|
|
(("/usr/bin/aplay")
|
|
|
|
(string-append (assoc-ref inputs "aplay")
|
|
|
|
"/bin/aplay"))
|
|
|
|
(("/usr/bin/timidity")
|
|
|
|
(string-append (assoc-ref inputs "timidity")
|
|
|
|
"/bin/timidity"))
|
|
|
|
(("/usr/bin/mpg123")
|
|
|
|
(string-append (assoc-ref inputs "mpg123")
|
|
|
|
"/bin/mpg123"))
|
|
|
|
(("/usr/bin/ogg123")
|
|
|
|
(string-append (assoc-ref inputs "ogg123")
|
|
|
|
"/bin/ogg123"))))
|
|
|
|
(alist-cons-before
|
|
|
|
'build 'patch-python-shebangs
|
|
|
|
(lambda _
|
|
|
|
;; Two python scripts begin with a Unicode BOM, so patch-shebang
|
|
|
|
;; has no effect.
|
|
|
|
(substitute* '("solfege/parsetree.py"
|
|
|
|
"solfege/presetup.py")
|
|
|
|
(("#!/usr/bin/python") (string-append "#!" (which "python")))))
|
|
|
|
(alist-cons-before
|
|
|
|
'build 'add-sitedirs
|
|
|
|
;; .pth files are not automatically interpreted unless the
|
|
|
|
;; directories containing them are added as "sites". The directories
|
|
|
|
;; are then added to those in the PYTHONPATH. This is required for
|
|
|
|
;; the operation of pygtk and pygobject.
|
|
|
|
(lambda _
|
|
|
|
(substitute* "run-solfege.py"
|
|
|
|
(("import os")
|
|
|
|
"import os, site
|
|
|
|
for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)")))
|
|
|
|
(alist-cons-before
|
|
|
|
'build 'adjust-config-file-prefix
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(substitute* "run-solfege.py"
|
|
|
|
(("prefix = os.path.*$")
|
|
|
|
(string-append "prefix = " (assoc-ref outputs "out")))))
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'wrap-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
;; Make sure 'solfege' runs with the correct PYTHONPATH. We
|
|
|
|
;; also need to modify GDK_PIXBUF_MODULE_FILE for SVG support.
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(path (getenv "PYTHONPATH"))
|
|
|
|
(rsvg (assoc-ref inputs "librsvg"))
|
|
|
|
(pixbuf (find-files rsvg "^loaders\\.cache$")))
|
|
|
|
(wrap-program (string-append out "/bin/solfege")
|
|
|
|
`("PYTHONPATH" ":" prefix (,path))
|
|
|
|
`("GDK_PIXBUF_MODULE_FILE" ":" prefix ,pixbuf))))
|
|
|
|
%standard-phases)))))))
|
|
|
|
(inputs
|
|
|
|
`(("python" ,python-2)
|
|
|
|
("pygtk" ,python2-pygtk)
|
|
|
|
("gettext" ,gnu-gettext)
|
|
|
|
("gtk" ,gtk+)
|
|
|
|
;; TODO: Lilypond is optional. Produces errors at build time:
|
|
|
|
;; Drawing systems...Error: /undefinedresult in --glyphshow--
|
|
|
|
;; Fontconfig is needed to fix one of the errors, but other similar
|
|
|
|
;; errors remain.
|
|
|
|
;;("lilypond" ,lilypond)
|
|
|
|
("librsvg" ,librsvg) ; needed at runtime for icons
|
|
|
|
("libpng" ,libpng) ; needed at runtime for icons
|
|
|
|
;; players needed at runtime
|
|
|
|
("aplay" ,alsa-utils)
|
|
|
|
("csound" ,csound) ; optional, needed for some exercises
|
|
|
|
("mpg123" ,mpg123)
|
|
|
|
("ogg123" ,vorbis-tools)
|
|
|
|
("timidity" ,timidity++)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("txt2man" ,txt2man)
|
|
|
|
("libxml2" ,libxml2) ; for tests
|
|
|
|
("ghostscript" ,ghostscript)
|
|
|
|
;;("fontconfig" ,fontconfig) ; only needed with lilypond
|
|
|
|
;;("freetype" ,freetype) ; only needed with lilypond
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
(home-page "https://www.gnu.org/software/solfege/")
|
|
|
|
(synopsis "Ear training")
|
|
|
|
(description
|
|
|
|
"GNU Solfege is a program for practicing musical ear-training. With it,
|
|
|
|
you can practice your recognition of various musical intervals and chords. It
|
|
|
|
features a statistics overview so you can monitor your progress across several
|
|
|
|
sessions. Solfege is also designed to be extensible so you can easily write
|
|
|
|
your own lessons.")
|
|
|
|
(license license:gpl3+)))
|
2015-04-19 18:39:25 +02:00
|
|
|
|
2015-06-04 10:01:11 +02:00
|
|
|
(define-public powertabeditor
|
|
|
|
(package
|
|
|
|
(name "powertabeditor")
|
2015-07-04 11:12:17 +02:00
|
|
|
(version "2.0.0-alpha8")
|
2015-06-04 10:01:11 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/powertab/powertabeditor/archive/"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-07-04 11:12:17 +02:00
|
|
|
"0gaa2x209v3azql8ak3r1n9a9qbxjx2ssirvwdxwklv2lmfqkm82"))
|
2015-06-04 10:01:11 +02:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Remove bundled sources for external libraries
|
|
|
|
(delete-file-recursively "external")
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "")
|
|
|
|
(("add_subdirectory\\(external\\)") ""))
|
|
|
|
(substitute* "test/CMakeLists.txt"
|
|
|
|
(("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") ""))
|
|
|
|
|
|
|
|
;; Add install target
|
|
|
|
(substitute* "source/CMakeLists.txt"
|
|
|
|
(("qt5_use_modules")
|
|
|
|
(string-append
|
|
|
|
"install(TARGETS powertabeditor "
|
|
|
|
"RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)\n"
|
|
|
|
"install(FILES data/tunings.json DESTINATION "
|
|
|
|
"${CMAKE_INSTALL_PREFIX}/share/powertabeditor/)\n"
|
|
|
|
"qt5_use_modules")))
|
|
|
|
#t))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2015-07-04 11:11:19 +02:00
|
|
|
`(#:modules ((guix build cmake-build-system)
|
2015-06-04 10:01:11 +02:00
|
|
|
(guix build utils)
|
|
|
|
(ice-9 match))
|
|
|
|
#:configure-flags
|
|
|
|
;; CMake appears to lose the RUNPATH for some reason, so it has to be
|
|
|
|
;; explicitly set with CMAKE_INSTALL_RPATH.
|
2015-07-04 11:11:19 +02:00
|
|
|
(list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
|
|
|
|
"-DCMAKE_ENABLE_PRECOMPILED_HEADERS=OFF" ; if ON pte_tests cannot be built
|
|
|
|
(string-append "-DCMAKE_INSTALL_RPATH="
|
2015-06-04 10:01:11 +02:00
|
|
|
(string-join (map (match-lambda
|
|
|
|
((name . directory)
|
|
|
|
(string-append directory "/lib")))
|
|
|
|
%build-inputs) ";")))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2015-07-04 11:11:19 +02:00
|
|
|
(replace
|
|
|
|
'check
|
|
|
|
(lambda _
|
|
|
|
(zero? (system* "bin/pte_tests"
|
|
|
|
;; Exclude this failing test
|
|
|
|
"~Formats/PowerTabOldImport/Directions"))))
|
|
|
|
(add-before
|
|
|
|
'configure 'fix-tests
|
|
|
|
(lambda _
|
|
|
|
;; Tests cannot be built with precompiled headers
|
|
|
|
(substitute* "test/CMakeLists.txt"
|
|
|
|
(("cotire\\(pte_tests\\)") ""))
|
|
|
|
#t))
|
2015-06-04 10:01:11 +02:00
|
|
|
(add-before
|
|
|
|
'configure 'remove-third-party-libs
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Link with required static libraries, because we're not
|
|
|
|
;; using the bundled version of withershins.
|
|
|
|
(substitute* '("source/CMakeLists.txt"
|
|
|
|
"test/CMakeLists.txt")
|
2015-07-04 11:11:19 +02:00
|
|
|
(("target_link_libraries\\((powertabeditor|pte_tests)" _ target)
|
2015-06-04 10:01:11 +02:00
|
|
|
(string-append "target_link_libraries(" target " "
|
|
|
|
(assoc-ref inputs "binutils")
|
|
|
|
"/lib/libbfd.a "
|
2015-07-01 21:50:08 +02:00
|
|
|
(assoc-ref inputs "libiberty")
|
2015-06-04 10:01:11 +02:00
|
|
|
"/lib/libiberty.a "
|
|
|
|
"dl")))
|
|
|
|
#t)))))
|
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("qt" ,qt)
|
|
|
|
("withershins" ,withershins)
|
2015-07-01 21:50:08 +02:00
|
|
|
("libiberty" ,libiberty) ;for withershins
|
2015-06-04 10:01:11 +02:00
|
|
|
("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
|
|
|
|
("timidity" ,timidity++)
|
|
|
|
("pugixml" ,pugixml)
|
|
|
|
("rtmidi" ,rtmidi)
|
|
|
|
("rapidjson" ,rapidjson)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-inputs
|
|
|
|
`(("catch" ,catch-framework)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://powertabs.net")
|
|
|
|
(synopsis "Guitar tablature editor")
|
|
|
|
(description
|
|
|
|
"Power Tab Editor 2.0 is the successor to the famous original Power Tab
|
|
|
|
Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
2015-06-18 17:37:47 +02:00
|
|
|
(define-public setbfree
|
|
|
|
(package
|
|
|
|
(name "setbfree")
|
|
|
|
(version "0.8.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append
|
|
|
|
"https://github.com/pantherb/setBfree/releases/download/v"
|
|
|
|
version "/setbfree-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"045bgp7qsigpbrhk7qvgvliwiy26sajifwn7f2jvk90ckfqnlw4b"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; no "check" target
|
|
|
|
#:make-flags
|
|
|
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
(string-append "FONTFILE="
|
|
|
|
(assoc-ref %build-inputs "font-bitstream-vera")
|
2015-07-05 20:40:56 +02:00
|
|
|
"/share/fonts/truetype/VeraBd.ttf")
|
|
|
|
;; Disable unsupported optimization flags on non-x86
|
|
|
|
,@(let ((system (or (%current-target-system)
|
|
|
|
(%current-system))))
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
|
|
|
(string-prefix? "i686" system))
|
|
|
|
'()
|
|
|
|
'("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
|
2015-06-18 17:37:47 +02:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'set-CC-variable
|
|
|
|
(lambda _ (setenv "CC" "gcc") #t))
|
|
|
|
(delete 'configure))))
|
|
|
|
(inputs
|
|
|
|
`(("jack" ,jack-1)
|
|
|
|
("lv2" ,lv2)
|
|
|
|
("zita-convolver" ,zita-convolver)
|
|
|
|
("glu" ,glu)
|
|
|
|
("ftgl" ,ftgl)
|
|
|
|
("font-bitstream-vera" ,font-bitstream-vera)))
|
|
|
|
(native-inputs
|
|
|
|
`(("help2man" ,help2man)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://setbfree.org")
|
|
|
|
(synopsis "Tonewheel organ")
|
|
|
|
(description
|
|
|
|
"setBfree is a MIDI-controlled, software synthesizer designed to imitate
|
|
|
|
the sound and properties of the electromechanical organs and sound
|
|
|
|
modification devices that brought world-wide fame to the names and products of
|
|
|
|
Laurens Hammond and Don Leslie.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2015-04-19 18:39:25 +02:00
|
|
|
(define-public tuxguitar
|
|
|
|
(package
|
|
|
|
(name "tuxguitar")
|
|
|
|
(version "1.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
|
|
|
|
version "/tuxguitar-src-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1g1yf2gd06fzdhqb8kb8dmdcmr602s9y24f01kyl4940wimgr944"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
(assoc-ref %outputs "out") "/lib")
|
|
|
|
(string-append "PREFIX="
|
|
|
|
(assoc-ref %outputs "out"))
|
|
|
|
(string-append "SWT_PATH="
|
|
|
|
(assoc-ref %build-inputs "swt")
|
|
|
|
"/share/java/swt.jar"))
|
|
|
|
#:tests? #f ;no "check" target
|
|
|
|
#:parallel-build? #f ;not supported
|
|
|
|
#:phases
|
|
|
|
(alist-cons-before
|
|
|
|
'build 'enter-dir-set-path-and-pass-ldflags
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(chdir "TuxGuitar")
|
|
|
|
(substitute* "GNUmakefile"
|
|
|
|
(("PROPERTIES\\?=")
|
|
|
|
(string-append "PROPERTIES?= -Dswt.library.path="
|
|
|
|
(assoc-ref inputs "swt") "/lib"))
|
|
|
|
(("\\$\\(GCJ\\) -o") "$(GCJ) $(LDFLAGS) -o"))
|
|
|
|
#t)
|
|
|
|
(alist-delete 'configure %standard-phases))))
|
|
|
|
(inputs
|
|
|
|
`(("swt" ,swt)))
|
|
|
|
(native-inputs
|
2015-10-12 10:36:27 +02:00
|
|
|
`(("gcj" ,gcj)
|
2015-04-19 18:39:25 +02:00
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://tuxguitar.com.ar")
|
|
|
|
(synopsis "Multitrack tablature editor and player")
|
|
|
|
(description
|
|
|
|
"TuxGuitar is a guitar tablature editor with player support through midi.
|
|
|
|
It can display scores and multitrack tabs. TuxGuitar provides various
|
|
|
|
additional features, including autoscrolling while playing, note duration
|
|
|
|
management, bend/slide/vibrato/hammer-on/pull-off effects, support for
|
|
|
|
tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
|
|
|
|
export.")
|
|
|
|
(license license:lgpl2.1+)))
|
2015-08-06 19:18:54 +02:00
|
|
|
|
|
|
|
(define-public pd
|
|
|
|
(package
|
|
|
|
(name "pd")
|
|
|
|
(version "0.45.4")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "mirror://sourceforge/pure-data/pure-data/"
|
|
|
|
version "/pd-" (version-major+minor version)
|
|
|
|
"-" (last (string-split version #\.))
|
|
|
|
".src.tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1ls2ap5yi2zxvmr247621g4jx0hhfds4j5704a050bn2n3l0va2p"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; no "check" target
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before
|
|
|
|
'configure 'fix-wish-path
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/s_inter.c"
|
|
|
|
((" wish ") (string-append " " (which "wish8.6") " ")))
|
|
|
|
(substitute* "tcl/pd-gui.tcl"
|
|
|
|
(("exec wish ") (string-append "exec " (which "wish8.6") " ")))
|
|
|
|
#t))
|
|
|
|
(add-after
|
|
|
|
'unpack 'autoconf
|
|
|
|
(lambda _ (zero? (system* "autoreconf" "-vfi")))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
|
|
|
("libtool" ,libtool)
|
|
|
|
("gettext" ,gnu-gettext)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("tk" ,tk)
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("jack" ,jack-1)))
|
|
|
|
(home-page "http://puredata.info")
|
|
|
|
(synopsis "Visual programming language for artistic performances")
|
|
|
|
(description
|
|
|
|
"Pure Data (aka Pd) is a visual programming language. Pd enables
|
|
|
|
musicians, visual artists, performers, researchers, and developers to create
|
|
|
|
software graphically, without writing lines of code. Pd is used to process
|
|
|
|
and generate sound, video, 2D/3D graphics, and interface sensors, input
|
|
|
|
devices, and MIDI. Pd can easily work over local and remote networks to
|
|
|
|
integrate wearable technology, motor systems, lighting rigs, and other
|
|
|
|
equipment. Pd is suitable for learning basic multimedia processing and visual
|
|
|
|
programming methods as well as for realizing complex systems for large-scale
|
|
|
|
projects.")
|
|
|
|
(license license:bsd-3)))
|
2015-08-26 23:25:31 +02:00
|
|
|
|
|
|
|
(define-public frescobaldi
|
|
|
|
(package
|
|
|
|
(name "frescobaldi")
|
|
|
|
(version "2.18.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/wbsoft/frescobaldi/releases/download/v"
|
|
|
|
version "/frescobaldi-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1hflc6gck6dn17czc2ldai5j0ynfg3df8lqcggdry06qxsdbnns7"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("lilypond" ,lilypond)
|
|
|
|
("python-pyqt-4" ,python-pyqt-4)
|
|
|
|
("python-ly" ,python-ly)
|
|
|
|
("poppler" ,poppler)
|
|
|
|
("python-poppler-qt4" ,python-poppler-qt4)
|
|
|
|
("python-sip" ,python-sip)))
|
|
|
|
(home-page "http://www.frescobaldi.org/")
|
|
|
|
(synopsis "LilyPond sheet music text editor")
|
|
|
|
(description
|
|
|
|
"Frescobaldi is a LilyPond sheet music text editor with syntax
|
|
|
|
highlighting and automatic completion. Among other things, it can render
|
|
|
|
scores next to the source, can capture input from MIDI or read MusicXML and
|
|
|
|
ABC files, has a MIDI player for proof-listening, and includes a documentation
|
|
|
|
browser.")
|
|
|
|
(license license:gpl2+)))
|
2015-08-31 17:34:28 +02:00
|
|
|
|
|
|
|
(define-public zynaddsubfx
|
|
|
|
(package
|
|
|
|
(name "zynaddsubfx")
|
|
|
|
(version "2.5.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
|
|
|
|
version "/zynaddsubfx-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"01c4v5lbzard6y00cjq3b6a50cafqwfwibzng9gdsajczhnbkqz2"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("liblo" ,liblo)
|
|
|
|
("ntk" ,ntk)
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("jack" ,jack-1)
|
|
|
|
("fftw" ,fftw)
|
|
|
|
("minixml" ,minixml)
|
|
|
|
("libxpm" ,libxpm)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://zynaddsubfx.sf.net/")
|
|
|
|
(synopsis "Software synthesizer")
|
|
|
|
(description
|
|
|
|
"ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
|
|
|
|
three synthesizer engines, multitimbral and polyphonic synths, microtonal
|
|
|
|
capabilities, custom envelopes, effects, etc.")
|
|
|
|
(license license:gpl2)))
|