doc: Add anchor to Recursive attributes in mkDerivation

So that we can link to it stably.
This commit is contained in:
Jan Tojnar 2022-08-02 18:01:03 +02:00
parent f73b6e98b1
commit 4cb8aa1324

View file

@ -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`.
### 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: