mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
45b312013e
* FluidSynth 1.1.11 was kept around as a dependency of some packages that hadn't yet adjusted to API breakages. All of these packages now use FluidSynth 2.x, so fluidsynth_1 can be removed. It has been broken ever since glib was updated to 2.70 and was affected by an unpatched CVE. * Refactor expression a bit, use pname instead of name. * Add changelog entry in case someone was using this downstream (accidentally?). Fixes #141508. Fixes #124624.
33 lines
988 B
Nix
33 lines
988 B
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake
|
|
, alsa-lib, glib, libjack2, libsndfile, libpulseaudio
|
|
, AudioUnit, CoreAudio, CoreMIDI, CoreServices
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fluidsynth";
|
|
version = "2.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FluidSynth";
|
|
repo = "fluidsynth";
|
|
rev = "v${version}";
|
|
sha256 = "0x5808d03ym23np17nl8gfbkx3c4y3d7jyyr2222wn2prswbb6x3";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
|
|
buildInputs = [ glib libsndfile libpulseaudio libjack2 ]
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
|
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ];
|
|
|
|
cmakeFlags = [ "-Denable-framework=off" ];
|
|
|
|
meta = with lib; {
|
|
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
|
|
homepage = "https://www.fluidsynth.org";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ goibhniu lovek323 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|