Custom toolchain support
Through a weekend project I ended up trying to package Solana with Nix. The part that I'm struggling with is cargo-build-bpf. Essentially this downloads so-called BPF tools and then it uses rustup toolchain link to create a custom toolchain which is later used with cargo build +bpf. Now how do I make this work with Nix?
I first tried a devShell that uses Fenix with rustup in it. Curiously, if rustup is in the shell, cargo fails with error: no override and no default toolchain set. If I remove it, cargo (from Fenix) works again, but the command fails because it can't link the toolchain without rustup.
My other idea would be to patch out the rustup call and just do the toolchain linking myself. At the end of the day these just appear to be symlinks, more or less. But that's reimplementing a part of rustup which also doesn't sound great.
Any thoughts on supporting custom toolchains with Fenix, considering Fenix aims to replace rustup?
I'd like to chip in and broaden the scope of this issue: Another interesting thing to have would be the esp32 rust toolchain
I'm trying to find a way to develop for the esp32 using rust on nix, what would it take to get it added to fenix