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 solana-program@1.18.12 --precise 1.17.28