Skip to content

Commit a16cb88

Browse files
Merge pull request #21 from zmrocze/superdirt-install
Fix typo: superdirt-install now in devshell
2 parents 1b1c4df + 6de9359 commit a16cb88

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

flake.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
};
109109

110110
# Installs SuperDirt under your user's supercollider quarks.
111-
superdirt-install = pkgs.writeShellScriptBin "superdirt-start" ''
112-
${supercollider}/bin/sclang ${superdirt}/install.sc
111+
superdirt-install = pkgs.writeShellScriptBin "superdirt-install" ''
112+
${supercollider}/bin/sclang ${superdirt}/install.scd
113113
'';
114114

115115
# Run the tidal interpreter (ghci running BootTidal.hs).
@@ -161,7 +161,7 @@
161161
tidal = final: prev: let
162162
tidalpkgs = mkPackages prev;
163163
in {
164-
inherit (tidalpkgs) superdirt-start superdirt-install tidal;
164+
inherit (tidalpkgs) superdirt-start superdirt-install tidal sclang-with-superdirt;
165165
vimPlugins = prev.vimPlugins // {inherit (tidalpkgs) vim-tidal;};
166166
};
167167
default = tidal;
@@ -174,7 +174,9 @@
174174
buildInputs = [
175175
tidalpkgs.supercollider
176176
tidalpkgs.superdirt-start
177+
tidalpkgs.superdirt-install
177178
tidalpkgs.tidal
179+
tidalpkgs.sclang-with-superdirt
178180
];
179181
# Convenient access to a config providing all quarks required for Tidal.
180182
SUPERDIRT_SCLANG_CONF = "${tidalpkgs.superdirt}/sclang_conf.yaml";

quark/lib.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# The resulting quark contains:
1010
# - `quark` subdirectory, containing the quark itself along with symbolic
1111
# links to each of its dependencies.
12-
# - a `install.sc` file that can be used to install the Quark imperatively.
12+
# - a `install.scd` file that can be used to install the Quark imperatively.
1313
# - a `sclang_conf.yaml` that can be used to provide the quark and its
1414
# dependencies directly to an interpreter.
1515
#
@@ -33,10 +33,10 @@
3333

3434
# Write a `sc` file that can be used to install the quark imperatively.
3535
# TODO: Don't clear all quarks - only remove any with matching ${name}.
36-
install-sc = ''
36+
install-scd = ''
3737
Quarks.clear;
3838
Quarks.install(\"$out\");
39-
thisProcess.recompile();\
39+
thisProcess.recompile();
4040
'';
4141

4242
# Write a yaml config file with an entry for this quark.
@@ -52,7 +52,7 @@
5252
mkdir -p $out/quark/${name}
5353
cp -r ./* $out/quark/${name}
5454
${ln-deps}
55-
echo "${install-sc}" >> $out/install.sc
55+
echo "${install-scd}" >> $out/install.scd
5656
echo "${sclang-conf-yaml}" >> $out/sclang_conf.yaml
5757
'';
5858
};

0 commit comments

Comments
 (0)