mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
Fix explanation of code snippet (#1028)
I presume that at one point there was only one package that was referred from `pkgs` and then another one was added later.
This commit is contained in:
parent
1c050ebb4d
commit
b0fb4ac4c6
|
@ -74,7 +74,7 @@ Only later it became widely used as a general way to make temporary environments
|
|||
`mkShellNoCC` is a function that produces such an environment, but without a compiler toolchain.
|
||||
|
||||
`mkShellNoCC` takes as argument an attribute set.
|
||||
Here we give it an attribute `packages` with a list containing one item from the `pkgs` attribute set.
|
||||
Here we give it an attribute `packages` with a list containing two items from the `pkgs` attribute set.
|
||||
|
||||
:::{Dropdown} Side note on `packages` and `buildInputs`
|
||||
You may encounter examples of `mkShell` or `mkShellNoCC` that add packages to the `buildInputs` or `nativeBuildInputs` attributes instead.
|
||||
|
|
Loading…
Reference in a new issue