mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
fluidsynth: Migrate to by-name. (#394942)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
72
pkgs/by-name/fl/fluidsynth/package.nix
Normal file
72
pkgs/by-name/fl/fluidsynth/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user