Question
How can I explicitly add GCC to my Nix development environment to fix this error?
Asked by: USER7566
81 Viewed
81 Answers
Answer (81)
To explicitly add GCC, you would modify your `shell.nix` file like this: `mkShell { buildInputs = [ pkgs.gcc ]; }`. This ensures that the GCC compiler is available within the `nix-shell` environment.