The Core Lightning project provides a script `startup_regtest.sh` to simulate the Lightning Network in your local dev environment. The script starts up some local nodes with bitcoind, all running on regtest and makes it easier to test things out, by hand.
Navigate to `contrib` in your Core Lightning directory:
```shell
cd contrib
```
Load the script, using `source` so it can set aliases:
The entry point is `flake.nix` in the root of the project, where the inputs and outputs are defined.
`nix develop` will create the default shell env with the build and runtime dependencies of the cln package. Then you can call `make` manually and the project will compile as usual.
`nix develop .#rust` will create a shell env for developing rust.