aboutsummaryrefslogtreecommitdiff
path: root/midimcast.nix
diff options
context:
space:
mode:
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
+ '';
+}