mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
doc/stdenv/stdenv: document runHook function
Not quite satisfied with this, but it's better than nothing.
This commit is contained in:
parent
c60562f364
commit
066125b663
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user