1
0
Fork 0
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:
Attila Gulyas 2024-08-13 04:07:59 -04:00 committed by GitHub
parent 1c050ebb4d
commit b0fb4ac4c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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` is a function that produces such an environment, but without a compiler toolchain.
`mkShellNoCC` takes as argument an attribute set. `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` :::{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. You may encounter examples of `mkShell` or `mkShellNoCC` that add packages to the `buildInputs` or `nativeBuildInputs` attributes instead.