@ -1,15 +1,15 @@
{ stdenv , fetchFromGitHub , cmake , libsndfile , flex , bison , boost
{ stdenv , fetchFromGitHub , cmake , libsndfile , libsamplerate , flex , bison , boost , gettex t
, alsaLib ? null
, libpulseaudio ? null
, tcltk ? null
, libjack2 ? null
, liblo ? null
# maybe csound can be compiled with support for those, see configure output
# , ladspa ? null
# , fluidsynth ? null
# , jack ? null
# , gmm ? null
# , wiiuse ? null
, ladspa-sdk ? null
, fluidsynth ? null
# , gmm ? null # opcodes don't build with gmm 5.1
, eigen ? null
, curl ? null
, tcltk ? null
, fltk ? null
} :
stdenv . mkDerivation rec {
@ -27,8 +27,15 @@ stdenv.mkDerivation rec {
sha256 = " 0 3 x n v a 1 7 s w 3 5 g a 3 n 9 6 x 1 z d f g w 9 1 3 d g a 1 h c c l y 8 5 w z f n 0 k x z 4 r l d 9 " ;
} ;
nativeBuildInputs = [ cmake flex bison ] ;
buildInputs = [ libsndfile alsaLib libpulseaudio tcltk boost liblo ] ;
cmakeFlags = [ " - D B U I L D _ C S O U N D _ A C = 0 " ] # fails to find Score.hpp
++ stdenv . lib . optional ( libjack2 != null ) " - D J A C K _ H E A D E R = ${ libjack2 } / i n c l u d e / j a c k / j a c k . h " ;
nativeBuildInputs = [ cmake flex bison gettext ] ;
buildInputs = [ libsndfile libsamplerate boost ]
++ builtins . filter ( optional : optional != null ) [
alsaLib libpulseaudio libjack2
liblo ladspa-sdk fluidsynth eigen
curl tcltk fltk ] ;
meta = with stdenv . lib ; {
description = " S o u n d d e s i g n , a u d i o s y n t h e s i s , a n d s i g n a l p r o c e s s i n g s y s t e m , p r o v i d i n g f a c i l i t i e s f o r m u s i c c o m p o s i t i o n a n d p e r f o r m a n c e o n a l l m a j o r o p e r a t i n g s y s t e m s a n d p l a t f o r m s " ;