git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26217 from rvl/csound-deps
ea11ee7Jörg Thalheim
pkgs/applications/audio/csound/default.nix+21−14
@@ -1,20 +1,20 @@
1−{ stdenv, fetchFromGitHub, cmake, libsndfile, flex, bison, boost
1+{ stdenv, fetchFromGitHub, cmake, libsndfile, libsamplerate, flex, bison, boost, gettext
2, alsaLib ? null
2, alsaLib ? null
3, libpulseaudio ? null
3, libpulseaudio ? null
4−, tcltk ? null
4+, libjack2 ? null
5, liblo ? null
5, liblo ? null
6−
7−# maybe csound can be compiled with support for those, see configure output
8−# , ladspa ? null
6+, ladspa-sdk ? null
9−# , fluidsynth ? null
7+, fluidsynth ? null
10−# , jack ? null
8+# , gmm ? null # opcodes don't build with gmm 5.1
9+, eigen ? null
11−# , gmm ? null
10+, curl ? null
11+, tcltk ? null
12−# , wiiuse ? null
12+, fltk ? null
13}:
13}:
14
14
15stdenv.mkDerivation rec {
15stdenv.mkDerivation rec {
16− name = "csound-6.08.1";
16+ name = "csound-${version}";
17− version = "6.08.1";
17+ version = "6.09.0";
18
18
19 enableParallelBuilding = true;
19 enableParallelBuilding = true;
20
20
@@ -24,11 +24,18 @@ stdenv.mkDerivation rec {
24 owner = "csound";
24 owner = "csound";
25 repo = "csound";
25 repo = "csound";
26 rev = version;
26 rev = version;
27− sha256 = "03xnva17sw35ga3n96x1zdfgw913dga1hccly85wzfn0kxz4rld9";
27+ sha256 = "1vfb0mab89psfwidadjrn5mbzq3bhjbyrrmyp98yp0xm6a8cssih";
28 };
28 };
29
29
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+
30− nativeBuildInputs = [ cmake flex bison ];
33+ nativeBuildInputs = [ cmake flex bison gettext ];
34+ buildInputs = [ libsndfile libsamplerate boost ]
35+ ++ builtins.filter (optional: optional != null) [
31− buildInputs = [ libsndfile alsaLib libpulseaudio tcltk boost liblo ];
36+ alsaLib libpulseaudio libjack2
37+ liblo ladspa-sdk fluidsynth eigen
38+ curl tcltk fltk ];
32
39
33 meta = with stdenv.lib; {
40 meta = with stdenv.lib; {
34 description = "Sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms";
41 description = "Sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms";