Question:
How do I get rid of this text that appears in the console when I run the program?
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
evaluating file '/home/runner/Practice-2/replit.nix'
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'nix-shell'
whose name attribute is located at /nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/stdenv/generic/make-derivation.nix:303:7
… while evaluating attribute 'buildInputs' of derivation 'nix-shell'
at /nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/stdenv/generic/make-derivation.nix:350:7:
349| depsHostHost = lib.elemAt (lib.elemAt dependencies 1) 0;
350| buildInputs = lib.elemAt (lib.elemAt dependencies 1) 1;
| ^
351| depsTargetTarget = lib.elemAt (lib.elemAt dependencies 2) 0;
error: Dependency is not of a valid type: element 1 of buildInputs for nix-shell
The program still works though.
Repl link/Link to where the bug appears:
https://replit.com/@Hadl4/Practice-2