@@ -1,20 +1,20 @@
1−{ stdenv, fetchFromGitHub, cmake, libsndfile, flex, bison, boost
1+{ stdenv, fetchFromGitHub, cmake, libsndfile, libsamplerate, flex, bison, boost, gettext
22, alsaLib ? null
33, libpulseaudio ? null
4−, tcltk ? null
4+, libjack2 ? null
55, liblo ? null
6−
7−# maybe csound can be compiled with support for those, see configure output
8−# , ladspa ? null
9−# , fluidsynth ? null
10−# , jack ? null
11−# , gmm ? null
12−# , wiiuse ? null
6+, ladspa-sdk ? null
7+, fluidsynth ? null
8+# , gmm ? null # opcodes don't build with gmm 5.1
9+, eigen ? null
10+, curl ? null
11+, tcltk ? null
12+, fltk ? null
1313}:
1414
1515stdenv.mkDerivation rec {
16− name = "csound-6.08.1";
17− version = "6.08.1";
16+ name = "csound-${version}";
17+ version = "6.09.0";
1818
1919 enableParallelBuilding = true;
2020
@@ -24,11 +24,18 @@ stdenv.mkDerivation rec {
2424 owner = "csound";
2525 repo = "csound";
2626 rev = version;
27− sha256 = "03xnva17sw35ga3n96x1zdfgw913dga1hccly85wzfn0kxz4rld9";
27+ sha256 = "1vfb0mab89psfwidadjrn5mbzq3bhjbyrrmyp98yp0xm6a8cssih";
2828 };
2929
30− nativeBuildInputs = [ cmake flex bison ];
31− buildInputs = [ libsndfile alsaLib libpulseaudio tcltk boost liblo ];
30+ cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
31+ ++ stdenv.lib.optional (libjack2 != null) "-DJACK_HEADER=${libjack2}/include/jack/jack.h";
32+
33+ nativeBuildInputs = [ cmake flex bison gettext ];
34+ buildInputs = [ libsndfile libsamplerate boost ]
35+ ++ builtins.filter (optional: optional != null) [
36+ alsaLib libpulseaudio libjack2
37+ liblo ladspa-sdk fluidsynth eigen
38+ curl tcltk fltk ];
3239
3340 meta = with stdenv.lib; {
3441 description = "Sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms";