I’m trying to set up the environment required by The Embedded Rust Book. Ideally I’d like to be able to package it all up in a single shell.nix (preferably portable across NixOS and non-NixOS) but I suspect that the udev rules can’t be set there.
Has anyone tried defining this environment in Nix?
Specifically I’m a bit lost on
-
how to get multiarch support in gdb
-
the Nix equivalent of qemu-system-arm
-
how to add the required udev rules under NixOS(solved here) -
I’m using the Oxalica Rust Overlay. I know how to express
rustup target add thumbv7em-none-eabihf
cargo component add llvm-tools-preview
in terms of
targets
andextensions
in an override, but I don’t know what would be the declarative equivalent ofcargo install cargo-binutils
cargo install cargo-generate
Do you have any hints?