A Nix flake for the Leo language.
Supports Linux. MacOS supported, but untested currently.
-
Install Nix, easiest with the Determinate Systems installer.
-
Use Nix to enter a shell with the
leoCLI:nix shell github:provablehq/leo.nix -
Check that it works with:
leo -h
If you're working on the leo repo itself, the following command can be useful. It allows you to enter a development shell with all of the necessary dependencies and environment variables to build leo and run the tests. This includes snarkos (with testnet enabled), openssl and pkg-config.
nix develop github:provablehq/leo.nix