aboutsummaryrefslogtreecommitdiff
path: root/midimcast.nix
diff options
context:
space:
mode:
authorrcerc <88944439+rcerc@users.noreply.github.com>2025-06-19 16:39:47 -0400
committerrcerc <88944439+rcerc@users.noreply.github.com>2025-06-19 18:20:38 -0400
commit5179ace697f702d7103c9aa6e26478363e0f6a4d (patch)
tree92c3b9393f3ea2d197400368cf106ffa89f14c6b /midimcast.nix
Rudimentary streaming of raw MIDI over multicast UDP
Diffstat (limited to 'midimcast.nix')
-rw-r--r--midimcast.nix27
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
+ '';
+}