NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.47k stars 13.66k forks source link

evcxr does not pull in rust binary by default, fails interpretation #207861

Closed trofi closed 1 year ago

trofi commented 1 year ago
$ nix-shell -p evcxr --run evcxr
Welcome to evcxr. For help, type :help
>> 1+2
Error: Failed to run rustc: No such file or directory (os error 2)

I think evcxr should pull in rustc into PATH. If I for comparison pull in rustc it does work:

$ nix-shell -p evcxr -p rustc --run evcxr
Welcome to evcxr. For help, type :help
>> 1+2
3

Worth adding it?

Notify maintainers

@Ma27 @protoben

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.11, NixOS, 23.05 (Stoat), 23.05pre436728.652e92b8064`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - channels(root): `"nixos"`
 - channels(slyfox): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
figsoda commented 1 year ago

rust comes in different versions, so I don't think it's a good idea to add it to path

trofi commented 1 year ago

rust comes in different versions, so I don't think it's a good idea to add it to path

Fine by me. I should be able to workaround locally.