doc/stdenv/stdenv: document runHook function

Not quite satisfied with this, but it's better than nothing.
This commit is contained in:
Tomodachi94 2024-09-14 21:28:09 -07:00
parent c60562f364
commit 066125b663
No known key found for this signature in database
GPG Key ID: 2E275F21C4D554A3

View File

@ -1136,6 +1136,12 @@ Example removing all references to the compiler in the output:
}
```
### `runHook` \<hook\> {#fun-runHook}
Execute \<hook\> and the values in the array associated with it. The array's name is determined by removing `Hook` from the end of \<hook\> and appending `Hooks`.
For example, `runHook postHook` would run the hook `postHook` and all of the values contained in the `postHooks` array, if it exists.
### `substitute` \<infile\> \<outfile\> \<subs\> {#fun-substitute}
Performs string substitution on the contents of \<infile\>, writing the result to \<outfile\>. The substitutions in \<subs\> are of the following form: