Open TheAwesome98-Real opened 2 months ago
Current nix setup is inpure. I guess we can add cargo
and rustc
in buildInputs
oh yeah that's how my shell.nix files are usually set up
this appears to not actually be the reason. unless nix opens a shell file when you cd into a directory, something i completely don't understand has happened. in /tmp cargo
works, but in /tmp/verso, cargo
doesn't. no nix-shell
invocation was performed.
Can reproduce on non-NixOS distro (Arch)
Current Behavior:
doing
nix-shell shell.nix --run 'cargo r'
results inerror: command failed: 'cargo': No such file or directory (os error 2)
Expected Behavior:
it should run
Steps To Reproduce:
nix-shell shell.nix --run 'cargo r'
error: command failed: 'cargo': No such file or directory (os error 2)
Screenshots Or Videos
Environment:
Anything else:
this may be a "my environment skill issue" but it's nixos so it shouldn't happen, right?