Skip to content

Commit 544f57d

Browse files
committed
Add missing SC3 plugins. Expose supercollider from output packages.
1 parent 4964afa commit 544f57d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

flake.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,21 @@
6767
dependencies = [dirt-samples vowel];
6868
};
6969

70+
# Supercollider with the SC3 plugins used by tidal.
71+
supercollider = pkgs.supercollider-with-plugins.override {
72+
plugins = [pkgs.supercolliderPlugins.sc3-plugins];
73+
};
74+
7075
# Run `SuperDirt.start` in supercollider, ready for tidal.
7176
superdirt-start = pkgs.writeShellScriptBin "superdirt-start" ''
72-
${pkgs.supercollider-with-plugins}/bin/sclang \
77+
${supercollider}/bin/sclang \
7378
-l "${superdirt}/sclang_conf.yaml" \
7479
${pkgs.writeText "superdirt-start.sc" "SuperDirt.start;"}
7580
'';
7681

7782
# Installs SuperDirt under your user's supercollider quarks.
7883
superdirt-install = pkgs.writeShellScriptBin "superdirt-start" ''
79-
${pkgs.supercollider-with-plugins}/bin/sclang ${superdirt}/install.sc
84+
${supercollider}/bin/sclang ${superdirt}/install.sc
8085
'';
8186

8287
# Run the tidal interpreter (ghci running BootTidal.hs).
@@ -115,7 +120,7 @@
115120
tidal = pkgs.mkShell {
116121
name = "tidal";
117122
buildInputs = [
118-
pkgs.supercollider-with-plugins
123+
tidalpkgs.supercollider
119124
tidalpkgs.superdirt-start
120125
tidalpkgs.tidal
121126
];

0 commit comments

Comments
 (0)