Solana nix setup for compiling programs.
This is not the latest solana or anchor, ensure your project matches the packaged solana version:
for example to move from 1.18.12 in your initialised anchor project
cargo update -p [email protected] --precise 1.17.28