If I run evcxr on my normal system, which happens to have Rust installed with files under $HOME/.cargo, it works:
> /nix/store/7l9105...-evcxr-0.12.0/bin/evcxr
Welcome to evcxr. For help, type :help
>>
But if I switch an empty $HOME environment, it fails to start up:
> export HOME=$(mktemp -d)
> /nix/store/7l9105...-evcxr-0.12.0/bin/evcxr
Welcome to evcxr. For help, type :help
>>
Initialization failed: Failed to read Cargo metadata from Cargo.toml file /tmp/.tmpIWo0yW/Cargo.toml, cargo 1.60.0
This error comes from rust-analyzer, which evcxr uses. I think perhaps some more things need to be added to the PATH for evcxrhere? This error seems to be associated in google searches with RUST_SRC_PATH issues, but the derivation sets it already so I'm not sure about that.
Notify maintainers
@protoben @Ma27
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Describe the bug
If I run
evcxr
on my normal system, which happens to have Rust installed with files under$HOME/.cargo
, it works:But if I switch an empty
$HOME
environment, it fails to start up:This error comes from
rust-analyzer
, whichevcxr
uses. I think perhaps some more things need to be added to thePATH
forevcxr
here? This error seems to be associated in google searches withRUST_SRC_PATH
issues, but the derivation sets it already so I'm not sure about that.Notify maintainers
@protoben @Ma27
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.