Development environment with nix-shell: Difference between revisions

Pigs (talk | contribs)
m See Also: Add link to changing shell in nix-shell
Cdro (talk | contribs)
m Correct a typo
 
(One intermediate revision by one other user not shown)
Line 22: Line 22:
       hello
       hello
     ];
     ];
     # compilers & linkers & dependecy finding programs
     # compilers & linkers & dependency finding programs
     nativeBuildInputs = [
     nativeBuildInputs = [
       rustc
       rustc
Line 82: Line 82:
we replace <code>nix-shell</code> with <code>nix develop</code>
we replace <code>nix-shell</code> with <code>nix develop</code>


Example: Building Nix in a development shell, to get [[Incremental builds]] = faster recompiles
Example: Building Nix in a development shell, to get [[Incremental builds]] = faster recompiles. This is because Nix evaluations are cached.


<pre>
<pre>