diff options
author | rcerc <88944439+rcerc@users.noreply.github.com> | 2025-06-19 16:39:47 -0400 |
---|---|---|
committer | rcerc <88944439+rcerc@users.noreply.github.com> | 2025-06-19 18:20:38 -0400 |
commit | 5179ace697f702d7103c9aa6e26478363e0f6a4d (patch) | |
tree | 92c3b9393f3ea2d197400368cf106ffa89f14c6b /midimcast.nix |
Rudimentary streaming of raw MIDI over multicast UDP
Diffstat (limited to 'midimcast.nix')
-rw-r--r-- | midimcast.nix | 27 |
1 files changed, 27 insertions, 0 deletions
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 + ''; +} |