Jump to content

C: Difference between revisions

44 bytes added ,  10 February 2021
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>
Anonymous user