Skip to content

Commit

Permalink
Wrapper to use Jack via Pipewire
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Pares committed Nov 10, 2024
1 parent 2c2891f commit 85cd24f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,35 @@
cp -R target/bundled $out/plugin
'';
});

# Standalone exe wrapped to use Jack via Pipewire (for Ubuntu notably)
nih_faust_jit_pw-jack = pkgs.writeShellApplication {
name = "nih_faust_jit_pw-jack";
text = ''
${pkgs.pipewire.jack}/bin/pw-jack ${nih_faust_jit}/bin/nih_faust_jit_standalone -b jack "$@"
'';
};
in
{
packages.${system} = {
default = nih_faust_jit;
inherit faust_jit faust_jit_egui nih_faust_jit toolchain;
inherit faust_jit faust_jit_egui nih_faust_jit nih_faust_jit_pw-jack toolchain;
};

checks.${system} = {
inherit faust_jit faust_jit_egui nih_faust_jit;
};

apps.${system} = rec {
default = nih_faust_jit_standalone;
apps.${system} = {
default = self.apps.${system}.nih_faust_jit_standalone;
nih_faust_jit_standalone = {
type = "app";
program = "${nih_faust_jit}/bin/nih_faust_jit_standalone";
};
nih_faust_jit_pw-jack = {
type = "app";
program = "${nih_faust_jit_pw-jack}/bin/nih_faust_jit_pw-jack";
};
};

devShells.${system}.default = craneLib.devShell {
Expand Down

0 comments on commit 85cd24f

Please sign in to comment.