Skip to content

Commit 1ebd0f5

Browse files
guylamar2006drupol
andcommitted
fluidsynth: Migrate to by-name.
fluidsynth: Add conditionals to provide default values on darwin Simplify package.nix Format to RFC style. Apply suggestions from code review Co-authored-by: Pol Dellaiera <[email protected]> Fix nix file fluidsynth: update meta attributes to use lib fluidsynth: simplify derivation definition fluidsynth: refactor derivation to use final attributes for versioning fluidsynth: Update meta attribute structure Update pkgs/by-name/fl/fluidsynth/package.nix Co-authored-by: Pol Dellaiera <[email protected]> Add license. Co-authored-by: Pol Dellaiera <[email protected]>
1 parent 3eeaa42 commit 1ebd0f5

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
@@ -12908,10 +12908,6 @@ with pkgs;
1290812908
hamlib = hamlib_4;
1290912909
};
1291012910

12911-
fluidsynth = callPackage ../applications/audio/fluidsynth {
12912-
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreAudio CoreMIDI CoreServices;
12913-
};
12914-
1291512911
fmit = libsForQt5.callPackage ../applications/audio/fmit { };
1291612912

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

0 commit comments

Comments
 (0)