From 5179ace697f702d7103c9aa6e26478363e0f6a4d Mon Sep 17 00:00:00 2001 From: rcerc <88944439+rcerc@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:39:47 -0400 Subject: Rudimentary streaming of raw MIDI over multicast UDP --- midimcast.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 midimcast.nix (limited to 'midimcast.nix') diff --git a/midimcast.nix b/midimcast.nix new file mode 100644 index 0000000..c52d720 --- /dev/null +++ b/midimcast.nix @@ -0,0 +1,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 + ''; +} -- cgit v1.2.3