1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Add cross-reference (#1031)

Added the reference to the "_Package parameters and overrides with `callPackage`_" chapter because I actually started looking up info on `callPackage` as I missed it being mentioned in the sidebar.

Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
This commit is contained in:
Attila Gulyas 2024-08-13 04:12:16 -04:00 committed by GitHub
parent b0fb4ac4c6
commit a06dc94072
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,8 +141,9 @@ This allows you to run `nix-build -A hello` to realize the derivation in `hello.
:::{note}
`callPackage` automatically passes attributes from `pkgs` to the given function, if they match attributes required by that function's argument attribute set.
In this case, `callPackage` will supply `stdenv`, and `fetchzip` to the function defined in `hello.nix`.
The tutorial [](./callpackage.md) goes into detail on how this works.
:::
Now run the `nix-build` command with the new argument: