rustc command not found with nix-shell or lorri shell
$ lorri shell
lorri: building environment......... done
May 23 01:05:10.542 ERRO Build failed. No cached environment available.
Build error: Nix process returned exit code 1.
$ "nix-build" "--out-link" "/tmp/.tmpR74nWS/result" "--" "/tmp/.tmpjHLmOY/result"
these 2 derivations will be built:
/nix/store/7s9z8hzv3pc1d73m5sq2w8h0vihmzj1v-rust_redoxer-0.2.19.drv
/nix/store/nsik6dv7fffky1vvv52lcl59ky8xrgw6-lorri-keep-env-hack-nix-shell.drv
warning: unknown setting 'github-access-token'
building '/nix/store/7s9z8hzv3pc1d73m5sq2w8h0vihmzj1v-rust_redoxer-0.2.19.drv'...
unpacking sources
unpacking source archive /nix/store/ir060x8nwpzs1vr2my8xzp0mkq7hpbj5-redoxer
source root is redoxer
patching sources
configuring
Running cd .
building
Building src/lib.rs (redoxer)
Running rustc --crate-name redoxer src/lib.rs --out-dir target/lib -L dependency=target/deps --cap-lints allow -C opt-level=3 -C codegen-units=16 --remap-path-prefix=/build=/ --extern dirs=/nix/store/qclaags48s93amz4a4hw5y4g8ba92gwl-rust_dirs-2.0.2-lib/lib/libdirs-cf78aa0d04.rlib --extern proc_mounts=/nix/store/n9zhlrd7cqz7yljqyzdplhkhlaqw2i0z-rust_proc-mounts-0.2.4-lib/lib/libproc_mounts-b6dbca7a7a.rlib --extern redox_installer=/nix/store/qgnyb9lc0qnlizjmf0qn7zyhj4bkz5gj-rust_redox_installer-0.2.7-lib/lib/libredox_installer-7bf18725c3.rlib --extern syscall=/nix/store/624f53w2ma6zlicknv08lpn6sams1q5b-rust_redox_syscall-0.1.56-lib/lib/libsyscall-501dea38e6.rlib --extern redoxfs=/nix/store/iw46f8ag2ayw4mkgjphxqalswy7q92wi-rust_redoxfs-0.4.1-lib/lib/libredoxfs-a19c62e31f.rlib --extern tempfile=/nix/store/qdryhlxdf0bgrmprjslp1v5cx5qc1yzg-rust_tempfile-3.1.0-lib/lib/libtempfile-e30a4968b1.rlib --extern toml=/nix/store/7q1ynrk8k3wghab4czvm75qij0zx3md4-rust_toml-0.5.6-lib/lib/libtoml-4d7bb26eaf.rlib --cfg feature="default" --edition 2018 -C metadata=92df85df3c -C extra-filename=-92df85df3c --crate-type lib -L native=/nix/store/fkmawghb2w73x769pgh9zai6z76y63s3-fuse-2.9.9/lib -L native=/nix/store/zsfwzrqznmaqg1q1zm0pivra0yyf8cgw-rust_ring-0.13.5-lib/lib/ring.out -l fuse -l static=ring-core -l static=ring-test --color always
/nix/store/r4bl79l2bdjawmr2rhhqvci56qh0fkvv-stdenv-linux/setup: line 1346: rustc: command not found
error: builder for '/nix/store/7s9z8hzv3pc1d73m5sq2w8h0vihmzj1v-rust_redoxer-0.2.19.drv' failed with exit code 127;
last 10 log lines:
> unpacking sources
> unpacking source archive /nix/store/ir060x8nwpzs1vr2my8xzp0mkq7hpbj5-redoxer
> source root is redoxer
> patching sources
> configuring
> Running cd .
> building
> Building src/lib.rs (redoxer)
> Running rustc --crate-name redoxer src/lib.rs --out-dir target/lib -L dependency=target/deps --cap-lints allow -C opt-level=3 -C codegen-units=16 --remap-path-prefix=/build=/ --extern dirs=/nix/store/qclaags48s93amz4a4hw5y4g8ba92gwl-rust_dirs-2.0.2-lib/lib/libdirs-cf78aa0d04.rlib --extern proc_mounts=/nix/store/n9zhlrd7cqz7yljqyzdplhkhlaqw2i0z-rust_proc-mounts-0.2.4-lib/lib/libproc_mounts-b6dbca7a7a.rlib --extern redox_installer=/nix/store/qgnyb9lc0qnlizjmf0qn7zyhj4bkz5gj-rust_redox_installer-0.2.7-lib/lib/libredox_installer-7bf18725c3.rlib --extern syscall=/nix/store/624f53w2ma6zlicknv08lpn6sams1q5b-rust_redox_syscall-0.1.56-lib/lib/libsyscall-501dea38e6.rlib --extern redoxfs=/nix/store/iw46f8ag2ayw4mkgjphxqalswy7q92wi-rust_redoxfs-0.4.1-lib/lib/libredoxfs-a19c62e31f.rlib --extern tempfile=/nix/store/qdryhlxdf0bgrmprjslp1v5cx5qc1yzg-rust_tempfile-3.1.0-lib/lib/libtempfile-e30a4968b1.rlib --extern toml=/nix/store/7q1ynrk8k3wghab4czvm75qij0zx3md4-rust_toml-0.5.6-lib/lib/libtoml-4d7bb26eaf.rlib --cfg feature="default" --edition 2018 -C metadata=92df85df3c -C extra-filename=-92df85df3c --crate-type lib -L native=/nix/store/fkmawghb2w73x769pgh9zai6z76y63s3-fuse-2.9.9/lib -L native=/nix/store/zsfwzrqznmaqg1q1zm0pivra0yyf8cgw-rust_ring-0.13.5-lib/lib/ring.out -l fuse -l static=ring-core -l static=ring-test --color always
> /nix/store/r4bl79l2bdjawmr2rhhqvci56qh0fkvv-stdenv-linux/setup: line 1346: rustc: command not found
For full logs, run 'nix log /nix/store/7s9z8hzv3pc1d73m5sq2w8h0vihmzj1v-rust_redoxer-0.2.19.drv'.
error: 1 dependencies of derivation '/nix/store/nsik6dv7fffky1vvv52lcl59ky8xrgw6-lorri-keep-env-hack-nix-shell.drv' failed to build