blob: c52d720933830880cef14ed418fe76a7be155d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
lib,
stdenv,
makeBinaryWrapper,
alsa-lib,
fluidsynth,
soundfont-generaluser,
}:
stdenv.mkDerivation rec {
name = "midimcast";
src = ./.;
nativeBuildInputs = [ makeBinaryWrapper ];
buildInputs = [
alsa-lib
fluidsynth
];
SOUNDFONT = "${soundfont-generaluser}/share/soundfonts/GeneralUser-GS.sf2";
fixupPhase = ''
runHook preFixup
wrapProgram $out/bin/midimcast-client \
--set-default SOUNDFONT "$SOUNDFONT" \
--suffix PATH : ${lib.makeBinPath buildInputs}
runHook postFixup
'';
}
|