1 { stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake
2 , alsa-lib, glib, libjack2, libsndfile, libpulseaudio
3 , AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-4Jn8pyVPrTPYZGdPZB+8guxTbD6s/1OpmLJlioDQFMA=";
17 outputs = [ "out" "dev" "man" ];
19 nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];
21 buildInputs = [ glib libsndfile libjack2 ]
22 ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib libpulseaudio ]
23 ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ];
26 "-Denable-framework=off"
30 description = "Real-time software synthesizer based on the SoundFont 2 specifications";
31 homepage = "https://www.fluidsynth.org";
32 license = licenses.lgpl21Plus;
33 maintainers = with maintainers; [ lovek323 ];
34 platforms = platforms.unix;
35 mainProgram = "fluidsynth";