mitchmindtree / tidalcycles.nix

A Nix flake for Tidal Cycles.
GNU General Public License v3.0
61 stars 12 forks source link

Allow passing in custom start script as param to superdirt-start #14

Closed rrrnld closed 2 years ago

rrrnld commented 2 years ago

Heya! I just started playing around with tidalcycles and was wondering how I'd load up custom samples with this flake. I saw #2 and gave this a shot in this PR. It's backwards-compatible but allows passing in a custom script for startup as the first argument to superdirt-start. If no argument is given it behaves the same as before and loads the simple start script that just contains SuperDirt.start;.

It's a simple solution that I think could work? Thanks for providing this, it was a great help in getting started!

rrrnld commented 2 years ago

Any feedback on this? I noticed that the script name may be weird, because strictly speaking when using a custom script you can use it for other stuff than starting superdirt, but I think it still works because the environment is set up with all dependencies superdirt. Also keeping the name means it stays backwards-compatible.

Some additional context maybe: I use this flake system-wide. I don't know if the script I wrote makes sense in a dev shell as well, but I think it should.