git.iko.soy/typeable/nixpkgs
on master help sign in
csound: add optional libraries

Adds extra bells and whistles: - jack - ladspa - fluidsynth - fltk (for the virtual keyboard) - curl - gettext The most important one is jack but I added other dependencies which seemed sensible and were mentioned by the configure script.

commita9f66fa4cf446abfd4f3d86d7c88a7b94a8708a4 authorRodney Lorrimar <dev@rodney.id.au> dateMon 29 May 2017, 21:39 (10 years ago) parent3d2cfab
1 file changed+18−11
pkgs/applications/audio/csound/default.nix+18−11
pkgs/applications/audio/csound/default.nix+18−11
@@ -1,15 +1,15 @@
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 {
@@ -27,8 +27,15 @@ stdenv.mkDerivation rec {
2727 sha256 = "03xnva17sw35ga3n96x1zdfgw913dga1hccly85wzfn0kxz4rld9";
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";