Skip to content

Commit cf28f0f

Browse files
authored
fluidsynth: Migrate to by-name. (NixOS#394942)
2 parents 62d611a + 1ebd0f5 commit cf28f0f

File tree

3 files changed

+72
-41
lines changed

3 files changed

+72
-41
lines changed

pkgs/applications/audio/fluidsynth/default.nix

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
stdenv,
3+
darwin,
4+
lib,
5+
fetchFromGitHub,
6+
buildPackages,
7+
pkg-config,
8+
cmake,
9+
alsa-lib,
10+
glib,
11+
libjack2,
12+
libsndfile,
13+
libpulseaudio,
14+
}:
15+
16+
stdenv.mkDerivation (finalAttrs: {
17+
pname = "fluidsynth";
18+
version = "2.4.3";
19+
20+
src = fetchFromGitHub {
21+
owner = "FluidSynth";
22+
repo = "fluidsynth";
23+
tag = "v${finalAttrs.version}";
24+
hash = "sha256-LaJcWrHgt/RzlDQmpzOjF/9ugD5d+8XWRt7pU3SM5Rk=";
25+
};
26+
27+
outputs = [
28+
"out"
29+
"dev"
30+
"man"
31+
];
32+
33+
nativeBuildInputs = [
34+
buildPackages.stdenv.cc
35+
pkg-config
36+
cmake
37+
];
38+
39+
buildInputs =
40+
[
41+
glib
42+
libsndfile
43+
libjack2
44+
]
45+
++ lib.optionals stdenv.hostPlatform.isLinux [
46+
alsa-lib
47+
libpulseaudio
48+
]
49+
++ lib.optionals stdenv.hostPlatform.isDarwin (
50+
with darwin.apple_sdk.frameworks;
51+
[
52+
AppKit
53+
AudioUnit
54+
CoreAudio
55+
CoreMIDI
56+
CoreServices
57+
]
58+
);
59+
60+
cmakeFlags = [
61+
"-Denable-framework=off"
62+
];
63+
64+
meta = {
65+
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
66+
homepage = "https://www.fluidsynth.org";
67+
license = lib.licenses.lgpl21Plus;
68+
maintainers = with lib.maintainers; [ lovek323 ];
69+
platforms = lib.platforms.unix;
70+
mainProgram = "fluidsynth";
71+
};
72+
})

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12916,10 +12916,6 @@ with pkgs;
1291612916
hamlib = hamlib_4;
1291712917
};
1291812918

12919-
fluidsynth = callPackage ../applications/audio/fluidsynth {
12920-
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreAudio CoreMIDI CoreServices;
12921-
};
12922-
1292312919
fmit = libsForQt5.callPackage ../applications/audio/fmit { };
1292412920

1292512921
fnc = darwin.apple_sdk_11_0.callPackage ../applications/version-management/fnc { };

0 commit comments

Comments
 (0)