How can I explicitly add GCC to my Nix development environment to fix this error?

Responsive Ad Header

Question

Grade: Education Subject: Support
How can I explicitly add GCC to my Nix development environment to fix this error?
Asked by:
81 Viewed 81 Answers

Answer (81)

Best Answer
(199)
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.