Nix flake for Strudel, a browser-based live coding environment for algorithmic music patterns, porting TidalCycles to JavaScript.
Try it online at https://strudel.cc
nix run github:mmxgn/strudel-flakeOpens the Strudel REPL at http://localhost:3009 in your browser. Set PORT to use a different port:
PORT=8080 nix run github:mmxgn/strudel-flakeAdd the flake as an input and include the package in your system or home config.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
strudel.url = "github:mmxgn/strudel-flake";
};
outputs = { self, nixpkgs, strudel, ... } @ inputs:
{
nixosConfigurations."<yourhostname>" = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
{
environment.systemPackages = [
strudel.packages.x86_64-linux.default
];
}
];
};
};
}Or with Home Manager:
home.packages = [ inputs.strudel.packages.x86_64-linux.default ];After installing, run with:
strudel