3
0
Fork 0
forked from mirrors/nixpkgs

doc/hooks/waf.section.md: change wafHook to waf.hook

This commit is contained in:
Anderson Torres 2023-08-25 16:56:20 -03:00
parent 54a729c1b0
commit 8e93a78ef4

View file

@ -1,16 +1,16 @@
# wafHook {#wafhook}
# waf.hook {#wafhook}
[Waf](https://waf.io) is a Python-based software building system.
In Nixpkgs, `wafHook` overrides the default configure, build, and install phases.
In Nixpkgs, `waf.hook` overrides the default configure, build, and install phases.
## Variables controlling wafHook {#variablesControllingWafHook}
## Variables controlling waf.hook {#variablesControllingWafHook}
### `wafPath` {#wafPath}
Location of the `waf` tool. It defaults to `./waf`, to honor software projects that include it directly inside their source trees.
If `wafPath` doesn't exist, then `wafHook` will copy the `waf` provided from Nixpkgs to it.
If `wafPath` doesn't exist, then `waf.hook` will copy the `waf` provided from Nixpkgs to it.
### `wafConfigureFlags` {#wafConfigureFlags}
@ -36,9 +36,9 @@ When set to true, don't use the predefined `wafBuildPhase`.
When set to true, don't use the predefined `wafInstallPhase`.
### Variables honored by wafHook {#variablesHonoredByWafHook}
### Variables honored by waf.hook {#variablesHonoredByWafHook}
The following variables commonly used by `stdenv.mkDerivation` are also honored by `wafHook`.
The following variables commonly used by `stdenv.mkDerivation` are also honored by `waf.hook`.
- `prefixKey`
- `configureTargets`