5
"aarch64-linux-gnu-gcc" not found
(programming.dev)
Make sure gcc is installed
You might get better results with rust-overlay - that's what I've been using to cross-compile for aarch64-linux, and for compiling natively on Mac. Let me plug a guide I wrote, https://nixlang.wiki/en/nix/how-to/development-environment-for-rust#setting-a-fixed-rust-toolchain-version
https://github.com/NixOS/nixpkgs/issues/145726
This might help, or at least point you in the right direction. Apologies but I have to post and run right now, I'll return and see if I can't help more asap.