redox-nix issueshttps://gitlab.redox-os.org/redox-os/redox-nix/-/issues2019-07-05T04:07:08Zhttps://gitlab.redox-os.org/redox-os/redox-nix/-/issues/2nixpkgs relibc2019-07-05T04:07:08ZJohn Ericsonnixpkgs relibcNixpkgs supports many libcs, and relib supports Linux. I figure this would be a great way for redox to get a toe-hold in nixpkgs. Got to start somewhere for `NixOS/{choose-kernel-at-boot}`!Nixpkgs supports many libcs, and relib supports Linux. I figure this would be a great way for redox to get a toe-hold in nixpkgs. Got to start somewhere for `NixOS/{choose-kernel-at-boot}`!https://gitlab.redox-os.org/redox-os/redox-nix/-/issues/3error while evaluating the attribute 'nativeBuildInputs'2020-05-02T02:04:28Zwagnerf42error while evaluating the attribute 'nativeBuildInputs'hi,
I wanted to give it a try but it fails when I enter the directory :
```
~ ❯❯❯ cd code/redox-nix/redox
direnv: loading ../.envrc
direnv: using nix
error: while evaluating the attribute 'nativeBuildInputs' of the derivation 'nix-shel...hi,
I wanted to give it a try but it fails when I enter the directory :
```
~ ❯❯❯ cd code/redox-nix/redox
direnv: loading ../.envrc
direnv: using nix
error: while evaluating the attribute 'nativeBuildInputs' of the derivation 'nix-shell' at /nix/store/3yfcip2l167sqpsl298s1j6nypywrycv-nixos-19.09pre184803.d567c486ca5/nixos/pkgs/build-support/mkshell/default.nix:28:3:
while evaluating 'chooseDevOutputs' at /nix/store/3yfcip2l167sqpsl298s1j6nypywrycv-nixos-19.09pre184803.d567c486ca5/nixos/lib/attrsets.nix:474:22, called from undefined position:
while evaluating 'mergeInputs' at /nix/store/3yfcip2l167sqpsl298s1j6nypywrycv-nixos-19.09pre184803.d567c486ca5/nixos/pkgs/build-support/mkshell/default.nix:14:17, called from /nix/store/3yfcip2l167sqpsl298s1j6nypywrycv-nixos-19.09pre184803.d567c486ca5/nixos/pkgs/build-support/mkshell/default.nix:32:23:
value is null while a list was expected, at /home/wagnerf/code/redox-nix/shell.nix:56:34
direnv: error unmarshal() zlib opening: unexpected EOF
```
I'm not really mastering nix right so I'm not sure how to help.https://gitlab.redox-os.org/redox-os/redox-nix/-/issues/4override toolchain '$HOME/redox/redox-nix/redox/prefix/x86_64-unknown-redox/r...2020-06-18T06:18:12ZAaron Janseoverride toolchain '$HOME/redox/redox-nix/redox/prefix/x86_64-unknown-redox/relibc-install' is not installedMy exact steps:
```
$ git clone --recurse-submodules https://gitlab.redox-os.org/redox-os/redox-nix
$ cd redox-nix
$ nix run -f ./components redoxer
$ redoxer install
```
I got the following error while running that last command:
```
er...My exact steps:
```
$ git clone --recurse-submodules https://gitlab.redox-os.org/redox-os/redox-nix
$ cd redox-nix
$ nix run -f ./components redoxer
$ redoxer install
```
I got the following error while running that last command:
```
error: override toolchain '/home/ajanse/redox/redox-nix/redox/prefix/x86_64-unknown-redox/relibc-install' is not installed
error: caused by: the RUSTUP_TOOLCHAIN environment variable specifies an uninstalled toolchain
redoxer cargo: exit code: 1
```
Any idea what could be causing this?https://gitlab.redox-os.org/redox-os/redox-nix/-/issues/5rustc command not found with nix-shell or lorri shell2022-05-22T17:06:52Zyangantoyanganto@gmail.comrustc 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" "--...`$ 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
```