2023-11-16 04:20:00 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib, glib, libjack2, libsndfile, libpulseaudio
|
2023-04-29 16:46:19 +00:00
|
|
|
, AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fluidsynth";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FluidSynth";
|
|
|
|
repo = "fluidsynth";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-3qLmo9Ibl44v6Jj5Ix17ixwqfPt3ITTXUqBETF5pzE4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [ glib libsndfile libjack2 ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ]
|
2023-04-29 16:46:19 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-Denable-framework=off"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://www.fluidsynth.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ goibhniu lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|