fluidsynth: Migrate to by-name. (#394942)

This commit is contained in:
Pol Dellaiera
2025-04-01 19:23:50 +02:00
committed by GitHub
3 changed files with 72 additions and 41 deletions

View File

@@ -1,37 +0,0 @@
{ stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake
, alsa-lib, glib, libjack2, libsndfile, libpulseaudio
, AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices
}:
stdenv.mkDerivation rec {
pname = "fluidsynth";
version = "2.4.3";
src = fetchFromGitHub {
owner = "FluidSynth";
repo = "fluidsynth";
rev = "v${version}";
hash = "sha256-LaJcWrHgt/RzlDQmpzOjF/9ugD5d+8XWRt7pU3SM5Rk=";
};
outputs = [ "out" "dev" "man" ];
nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];
buildInputs = [ glib libsndfile libjack2 ]
++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib libpulseaudio ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit 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; [ lovek323 ];
platforms = platforms.unix;
mainProgram = "fluidsynth";
};
}

View File

@@ -0,0 +1,72 @@
{
stdenv,
darwin,
lib,
fetchFromGitHub,
buildPackages,
pkg-config,
cmake,
alsa-lib,
glib,
libjack2,
libsndfile,
libpulseaudio,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fluidsynth";
version = "2.4.3";
src = fetchFromGitHub {
owner = "FluidSynth";
repo = "fluidsynth";
tag = "v${finalAttrs.version}";
hash = "sha256-LaJcWrHgt/RzlDQmpzOjF/9ugD5d+8XWRt7pU3SM5Rk=";
};
outputs = [
"out"
"dev"
"man"
];
nativeBuildInputs = [
buildPackages.stdenv.cc
pkg-config
cmake
];
buildInputs =
[
glib
libsndfile
libjack2
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
libpulseaudio
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
AudioUnit
CoreAudio
CoreMIDI
CoreServices
]
);
cmakeFlags = [
"-Denable-framework=off"
];
meta = {
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
homepage = "https://www.fluidsynth.org";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ lovek323 ];
platforms = lib.platforms.unix;
mainProgram = "fluidsynth";
};
})

View File

@@ -12916,10 +12916,6 @@ with pkgs;
hamlib = hamlib_4;
};
fluidsynth = callPackage ../applications/audio/fluidsynth {
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreAudio CoreMIDI CoreServices;
};
fmit = libsForQt5.callPackage ../applications/audio/fmit { };
fnc = darwin.apple_sdk_11_0.callPackage ../applications/version-management/fnc { };