···11-# waf.hook {#wafhook}11+# wafHook {#wafHook}2233[Waf](https://waf.io) is a Python-based software building system.4455-In Nixpkgs, `waf.hook` overrides the default configure, build, and install phases.55+In Nixpkgs, `wafHook` overrides the default configure, build, and install phases.6677-## Variables controlling waf.hook {#variablesControllingWafHook}77+## Variables controlling wafHook {#variablesControllingWafHook}8899-### `wafPath` {#wafPath}99+### `wafHook` Exclusive Variables {#wafHookExclusiveVariables}1010+1111+The variables below are exclusive of `wafHook`.1212+1313+#### `wafPath` {#wafPath}10141115Location of the `waf` tool. It defaults to `./waf`, to honor software projects that include it directly inside their source trees.12161313-If `wafPath` doesn't exist, then `waf.hook` will copy the `waf` provided from Nixpkgs to it.1717+If `wafPath` doesn't exist, then `wafHook` will copy the `waf` provided from Nixpkgs to it.14181515-### `wafFlags` {#wafFlags}1919+#### `wafFlags` {#wafFlags}16201717-Controls the flags passed to waf tool during build and install phases. For settings specific to build or install phases, use `buildFlags` or `installFlags` respectively.2121+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.18221919-### `dontAddWafCrossFlags` {#dontAddWafCrossFlags}2323+#### `dontAddWafCrossFlags` {#dontAddWafCrossFlags}20242125When set to `true`, don't add cross compilation flags during configure phase.22262323-### `dontUseWafConfigure` {#dontUseWafConfigure}2727+#### `dontUseWafConfigure` {#dontUseWafConfigure}24282529When set to true, don't use the predefined `wafConfigurePhase`.26302727-### `dontUseWafBuild` {#dontUseWafBuild}3131+#### `dontUseWafBuild` {#dontUseWafBuild}28322933When set to true, don't use the predefined `wafBuildPhase`.30343131-### `dontUseWafInstall` {#dontUseWafInstall}3535+#### `dontUseWafInstall` {#dontUseWafInstall}32363337When set to true, don't use the predefined `wafInstallPhase`.34383535-### Variables honored by waf.hook {#variablesHonoredByWafHook}3939+### Similar variables {#similarVariables}36403737-The following variables commonly used by `stdenv.mkDerivation` are also honored by `waf.hook`.4141+The following variables are similar to their `stdenv.mkDerivation` counterparts.4242+4343+| `wafHook` Variable | `stdenv.mkDerivation` Counterpart |4444+|-----------------------|-----------------------------------|4545+| `wafConfigureFlags` | `configureFlags` |4646+| `wafConfigureTargets` | `configureTargets` |4747+| `wafBuildFlags` | `buildFlags` |4848+| `wafBuildTargets` | `buildTargets` |4949+| `wafInstallFlags` | `installFlags` |5050+| `wafInstallTargets` | `installTargets` |5151+5252+### Honored variables {#honoredVariables}5353+5454+The following variables commonly used by `stdenv.mkDerivation` are honored by `wafHook`.38553956- `prefixKey`4040-- `configureFlags`4141-- `configureTargets`4257- `enableParallelBuilding`4358- `enableParallelInstalling`4444-- `buildFlags`4545-- `buildTargets`4646-- `installFlags`4747-- `installTargets`
···18651865 inherit (libsForQt5.mauiPackages) vvave; # added 2022-05-171866186618671867 ### W ###18681868- wafHook = waf.hook; # Added 2023-08-2318691868 wavesurfer = throw "wavesurfer has been removed: depended on snack which has been removed"; # Added 2022-04-2118701869 waybar-hyprland = throw "waybar-hyprland has been removed: hyprland support is now built into waybar by default."; # Added 2023-08-2118711870 way-cooler = throw "way-cooler is abandoned by its author: https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html"; # Added 2020-01-13
+6
pkgs/top-level/all-packages.nix
···1485614856 volumeicon = callPackage ../tools/audio/volumeicon { };14857148571485814858 waf = callPackage ../development/tools/build-managers/waf { };1485914859+ # An alias to work around the splicing incidents1486014860+ # Related:1486114861+ # https://github.com/NixOS/nixpkgs/issues/2043031486214862+ # https://github.com/NixOS/nixpkgs/issues/2113401486314863+ # https://github.com/NixOS/nixpkgs/issues/2273271486414864+ wafHook = waf.hook;14859148651486014866 waf-tester = callPackage ../tools/security/waf-tester { };1486114867