From 066125b6632f0f81791a91856d3a56246eee2ccf Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Sat, 14 Sep 2024 21:28:09 -0700 Subject: [PATCH] doc/stdenv/stdenv: document runHook function Not quite satisfied with this, but it's better than nothing. --- doc/stdenv/stdenv.chapter.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index f776ca8d8dab..ce4ec2541f34 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1136,6 +1136,12 @@ Example removing all references to the compiler in the output: } ``` +### `runHook` \ {#fun-runHook} + +Execute \ and the values in the array associated with it. The array's name is determined by removing `Hook` from the end of \ 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` \ \ \ {#fun-substitute} Performs string substitution on the contents of \, writing the result to \. The substitutions in \ are of the following form: