Development environment with nix-shell: Difference between revisions
m Direnv forwardlink |
m Correct a typo |
||
(2 intermediate revisions by one other user not shown) | |||
Line 22: | Line 22: | ||
hello | hello | ||
]; | ]; | ||
# compilers & linkers & | # 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> | ||
Line 212: | Line 212: | ||
== See Also == | == See Also == | ||
* [[Direnv]] | * [[Direnv]] | ||
* [[Command Shell#Using a different shell in nix-shell and nix develop]] | |||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:nix]] | [[Category:nix]] |