3 [Waf](https://waf.io) is a Python-based software building system.
5 In Nixpkgs, `wafHook` overrides the default configure, build, and install phases.
7 ## Variables controlling wafHook {#waf-hook-variables-controlling}
9 ### `wafHook` Exclusive Variables {#waf-hook-exclusive-variables}
11 The variables below are exclusive of `wafHook`.
13 #### `wafPath` {#waf-path}
15 Location of the `waf` tool. It defaults to `./waf`, to honor software projects that include it directly inside their source trees.
17 If `wafPath` doesn't exist, then `wafHook` will copy the `waf` provided from Nixpkgs to it.
19 #### `wafFlags` {#waf-flags}
21 Controls the flags passed to waf tool during build and install phases. For settings specific to build or install phases, use `wafBuildFlags` or `wafInstallFlags` respectively.
23 #### `dontUseWafConfigure` {#dont-use-waf-configure}
25 When set to true, don't use the predefined `wafConfigurePhase`.
27 #### `dontUseWafBuild` {#dont-use-waf-build}
29 When set to true, don't use the predefined `wafBuildPhase`.
31 #### `dontUseWafInstall` {#dont-use-waf-install}
33 When set to true, don't use the predefined `wafInstallPhase`.
35 ### Similar variables {#waf-hook-similar-variables}
37 The following variables are similar to their `stdenv.mkDerivation` counterparts.
39 | `wafHook` Variable | `stdenv.mkDerivation` Counterpart |
40 |-----------------------|-----------------------------------|
41 | `wafConfigureFlags` | `configureFlags` |
42 | `wafConfigureTargets` | `configureTargets` |
43 | `wafBuildFlags` | `buildFlags` |
44 | `wafBuildTargets` | `buildTargets` |
45 | `wafInstallFlags` | `installFlags` |
46 | `wafInstallTargets` | `installTargets` |
48 ### Honored variables {#waf-hook-honored-variables}
50 The following variables commonly used by `stdenv.mkDerivation` are honored by `wafHook`.
53 - `enableParallelBuilding`
54 - `enableParallelInstalling`