Merge pull request #184848 from jtojnar/mkder-rec-anchor
doc: Add anchor to Recursive attributes in `mkDerivation`
This commit is contained in:
commit
163e81aac0
|
@ -317,7 +317,7 @@ The script will be usually run from the root of the Nixpkgs repository but you s
|
||||||
|
|
||||||
For information about how to run the updates, execute `nix-shell maintainers/scripts/update.nix`.
|
For information about how to run the updates, execute `nix-shell maintainers/scripts/update.nix`.
|
||||||
|
|
||||||
### Recursive attributes in `mkDerivation`
|
### Recursive attributes in `mkDerivation` {#mkderivation-recursive-attributes}
|
||||||
|
|
||||||
If you pass a function to `mkDerivation`, it will receive as its argument the final arguments, including the overrides when reinvoked via `overrideAttrs`. For example:
|
If you pass a function to `mkDerivation`, it will receive as its argument the final arguments, including the overrides when reinvoked via `overrideAttrs`. For example:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue