Commit 8e93a78e authored by Anderson Torres's avatar Anderson Torres
Browse files

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

parent 54a729c1
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
# 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`