C: Difference between revisions

imported>Artturin
m add to the languages category
imported>Mic92
Line 235: Line 235:
== Use a different compiler version ==
== Use a different compiler version ==


Adding a different c compiler to `buildInputs` in a nix expression will not change the default compiler
Adding a different c compiler to <code>buildInputs</code> in a nix expression will not change the default compiler
available in `$PATH`. Instead, nixpkgs provides a several alternative `stdenv` which you can search with `nix search stdenv` so for example:
available in <code>$PATH</code>. Instead, nixpkgs provides a several alternative <code>stdenv</code> which you can search with <code>nix search stdenv</code> so for example:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>