diff options
| author | Radu <radu@pml4t.net> | 2025-06-19 16:39:47 -0400 |
|---|---|---|
| committer | Radu <radu@pml4t.net> | 2025-06-19 18:20:38 -0400 |
| commit | 125d83790b727a6e779cf4c0ed2e5c9426ef4840 (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 + ''; +} |
