23 # , gmm ? null # opcodes don't build with gmm 5.1
30 stdenv.mkDerivation rec {
34 hardeningDisable = [ "format" ];
36 src = fetchFromGitHub {
40 sha256 = "sha256-O7s92N54+zIl07eIdK/puoSve/qJ3O01fTh0TP+VdZA=";
44 [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
45 ++ lib.optional stdenv.hostPlatform.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib"
46 # Ignore gettext in CMAKE_PREFIX_PATH on cross to prevent find_program picking up the wrong gettext
48 stdenv.hostPlatform != stdenv.buildPlatform
49 ) "-DCMAKE_IGNORE_PATH=${lib.getBin gettext}/bin";
63 ++ lib.optionals stdenv.hostPlatform.isDarwin [
70 ++ lib.optionals stdenv.hostPlatform.isLinux (
71 builtins.filter (optional: optional != null) [
85 postInstall = lib.optional stdenv.hostPlatform.isDarwin ''
86 mkdir -p $out/Library/Frameworks
87 ln -s $out/lib/CsoundLib64.framework $out/Library/Frameworks
91 description = "Sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms";
92 homepage = "https://csound.com/";
93 license = licenses.lgpl21Plus;
94 maintainers = [ maintainers.marcweber ];
95 platforms = platforms.unix;