Skip to content
tinyinterpretersPublic

About

Reusable Nix development tooling for Tiny Interpreters.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Nix

Reusable Nix development tooling for Tiny Interpreters.

Usage

Start a new interpreter from the template:

nix flake init -t github:tinyinterpreters/nix

Or add the flake as an input to an existing project:

inputs.ti.url = "github:tinyinterpreters/nix";

Then merge the Elm shell into your own dev shell:

devShells.default = pkgs.mkShell {
  name = "const";
  inputsFrom = [ (ti.lib.elmShell pkgs) ];
};

The flake has no inputs of its own, so the shell is built from your pkgs. Add packages or a shellHook to your shell as usual.

Finally, import the shared recipes in your justfile:

import x'${TI_ELM_JUSTFILE}'

Run just to list them. To replace one, add set allow-duplicate-recipes and define your own recipe with the same name.

lib

About

Reusable Nix development tooling for Tiny Interpreters.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages