I would like the convenience of
rustup coupled with
There might be a way to do this by passinga derivation (containing the URLs and the hashes) to
nix-shell which would do some of the heavy lifting.
However, this would be a different rustup than what everyone else is using and I don’t think it should exist unless it’s very simple.
One cool thing about
nix-shell though is that you make it run nothing (or
true) to “install” a toolchain - the effect would be that it’s cached until later garbage-collected.
Of course, you could also root it, not sure how painful that is with transient derivations.