Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waf: refactor #249251

Merged
merged 36 commits into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c2aa39d
wafHook: assimilated under waf.passthru.hook
AndersonTorres Aug 23, 2023
5784365
ams-lv2: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
f6e84f5
ardour-6: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
aefefd4
ardour: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
e06e63d
fomp: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
873c08c
guitarix: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
1d02a88
ingen: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
e21b408
jalv: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
0d5e46b
mda-lv2: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
be0d7ac
non: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
9b239a4
patchage: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
6503e19
hamster: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
19686e6
kupfer: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
a248f3b
semantik: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
55c7b15
xfce.xfce4-namebar-plugin: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
23076f6
talloc: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
1cbf27a
tdb: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
9ae2ffe
tevent: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
058e903
jackaudio: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
64c13f0
nfd: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
8db33a1
samba4: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
5b70a63
blockhash: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
e5531da
ndn-tools: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
71ce5b1
saldl: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
f64231e
aubio: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
2eef8d5
lilv: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
b9f323d
lvtk: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
8eb36e9
ntk: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
53f23b3
raul: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
da51098
suil: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
00d90d1
ganv: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
e085b4d
ldb: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
ff6e72b
ndn-cxx: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
82c522c
pflask: change wafHook to waf.hook
AndersonTorres Aug 23, 2023
3b16cad
doc/hooks/waf.section.md: change wafHook to waf.hook
AndersonTorres Aug 25, 2023
771b0e8
wafHook: move to aliases.nix
AndersonTorres Aug 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions doc/hooks/waf.section.md
Original file line number Diff line number Diff line change
@@ -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}

Expand All @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ams-lv2/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkg-config
, wafHook, python3 }:
, waf, python3 }:

stdenv.mkDerivation rec {
pname = "ams-lv2";
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "1lz2mvk4gqsyf92yxd3aaldx0d0qi28h4rnnvsaz4ls0ccqm80nk";
};

nativeBuildInputs = [ pkg-config wafHook python3 ];
nativeBuildInputs = [ pkg-config waf.hook python3 ];
buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ardour/6.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
, suil
, taglib
, vamp-plugin-sdk
, wafHook
, waf
, xjadeo
, videoSupport ? true
}:
Expand Down Expand Up @@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
perl
pkg-config
python3
wafHook
waf.hook
];

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ardour/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
, suil
, taglib
, vamp-plugin-sdk
, wafHook
, waf
, xjadeo
, videoSupport ? true
}:
Expand Down Expand Up @@ -100,7 +100,7 @@ stdenv.mkDerivation rec {
perl
pkg-config
python3
wafHook
waf.hook
];

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/fomp/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, lv2, pkg-config, python3, wafHook }:
{ lib, stdenv, fetchurl, lv2, pkg-config, python3, waf }:

stdenv.mkDerivation rec {
pname = "fomp";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-xnGijydiO3B7BjSlryFuH1j/OPio9hCYbniq2IXp2W8=";
};

nativeBuildInputs = [ pkg-config wafHook ];
nativeBuildInputs = [ pkg-config waf.hook ];
buildInputs = [ lv2 python3 ];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/guitarix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
, serd
, sord
, sratom
, wafHook
, waf
, wrapGAppsHook
, zita-convolver
, zita-resampler
Expand All @@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
intltool
pkg-config
python3
wafHook
waf.hook
wrapGAppsHook
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ingen/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchgit, boost, ganv, glibmm, gtkmm2, libjack2, lilv
, lv2, pkg-config, python3, raul, serd, sord, sratom
, wafHook
, waf
, suil
}:

Expand All @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
deepClone = true;
};

nativeBuildInputs = [ pkg-config wafHook python3 python3.pkgs.wrapPython ];
nativeBuildInputs = [ pkg-config waf.hook python3 python3.pkgs.wrapPython ];
buildInputs = [
boost ganv glibmm gtkmm2 libjack2 lilv lv2
python3 raul serd sord sratom suil
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/jalv/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, gtk2, libjack2, lilv, lv2, pkg-config, python3
, serd, sord , sratom, suil, wafHook }:
, serd, sord , sratom, suil, waf }:

stdenv.mkDerivation rec {
pname = "jalv";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ktFBeBtmQ3MgfDQ868XpuM7UYfryb9zLld8AB7BjnhY=";
};

nativeBuildInputs = [ pkg-config wafHook ];
nativeBuildInputs = [ pkg-config waf.hook ];
buildInputs = [
gtk2 libjack2 lilv lv2 python3 serd sord sratom suil
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mda-lv2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fftwSinglePrec, lv2, pkg-config, wafHook, python3 }:
{ lib, stdenv, fetchurl, fftwSinglePrec, lv2, pkg-config, waf, python3 }:

stdenv.mkDerivation rec {
pname = "mda-lv2";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-zWYRcCSuBJzzrKg/npBKcCdyJOI6lp9yqcXQEKSYV9s=";
};

nativeBuildInputs = [ pkg-config wafHook python3 ];
nativeBuildInputs = [ pkg-config waf.hook python3 ];
buildInputs = [ fftwSinglePrec lv2 ];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/non/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, python3, cairo, libjpeg, ntk, libjack2
, libsndfile, ladspaH, liblo, libsigcxx, lrdf, wafHook
, libsndfile, ladspaH, liblo, libsigcxx, lrdf, waf
}:

stdenv.mkDerivation {
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation {
sha256 = "sha256-iMJNMDytNXpEkUhL0RILSd25ixkm8HL/edtOZta0Pf4=";
};

nativeBuildInputs = [ pkg-config wafHook ];
nativeBuildInputs = [ pkg-config waf.hook ];
buildInputs = [ python3 cairo libjpeg ntk libjack2 libsndfile
ladspaH liblo libsigcxx lrdf
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/patchage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, libjack2
, pkg-config
, python3
, wafHook
, waf
}:

stdenv.mkDerivation rec {
Expand All @@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
gtkmm2
libjack2
python3
wafHook
waf.hook
];

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/hamster/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3
, wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
, wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, waf }:

python3Packages.buildPythonApplication rec {
pname = "hamster";
Expand All @@ -19,7 +19,7 @@ python3Packages.buildPythonApplication rec {
wrapGAppsHook
intltool
itstool
wafHook
waf.hook
glib
gobject-introspection
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/kupfer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, desktop-file-utils
, shared-mime-info
, wrapGAppsHook
, wafHook
, waf
, bash
, dbus
}:
Expand All @@ -31,7 +31,7 @@ buildPythonApplication rec {
nativeBuildInputs = [
wrapGAppsHook intltool
# For setup hook
gobject-introspection wafHook
gobject-introspection waf.hook
itstool # for help pages
desktop-file-utils # for update-desktop-database
shared-mime-info # for update-mime-info
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/semantik/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, mkDerivation
, fetchFromGitLab
, fetchpatch
, wafHook
, waf
, pkg-config
, cmake
, qtbase
Expand Down Expand Up @@ -65,7 +65,7 @@ mkDerivation rec {
--replace /usr/include/KF5/KDELibs4Support "${lib.getDev kdelibs4support}/include/KF5/KDELibs4Support"
'';

nativeBuildInputs = [ (lib.getDev qtsvg) (lib.getLib qtsvg) python3 pkg-config wafHook cmake ];
nativeBuildInputs = [ (lib.getDev qtsvg) (lib.getLib qtsvg) python3 pkg-config waf.hook cmake ];

buildInputs = [
qtbase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, pkg-config, fetchFromGitHub, python3, vala
, gtk3, libwnck, libxfce4util, xfce4-panel, wafHook, xfce
, gtk3, libwnck, libxfce4util, xfce4-panel, waf, xfce
, gitUpdater
}:

Expand All @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-aKrJzf9rwCyXAJsRIXdBzmJBASuXD5I5kZrp+atx4FA=";
};

nativeBuildInputs = [ pkg-config vala wafHook python3 ];
nativeBuildInputs = [ pkg-config vala waf.hook python3 ];
buildInputs = [ gtk3 libwnck libxfce4util xfce4-panel ];

postPatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/aubio/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, alsa-lib, fftw, libjack2, libsamplerate
, libsndfile, pkg-config, python3, wafHook
, libsndfile, pkg-config, python3, waf
}:

stdenv.mkDerivation rec {
Expand All @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl";
};

nativeBuildInputs = [ pkg-config python3 wafHook ];
nativeBuildInputs = [ pkg-config python3 waf.hook ];
buildInputs = [ alsa-lib fftw libjack2 libsamplerate libsndfile ];

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/lilv/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, wafHook
{ lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, waf

# test derivations
, pipewire
Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {

patches = [ ./lilv-pkgconfig.patch ];

nativeBuildInputs = [ pkg-config python3 wafHook ];
nativeBuildInputs = [ pkg-config python3 waf.hook ];
buildInputs = [ serd sord sratom ];
propagatedBuildInputs = [ lv2 ];
dontAddWafCrossFlags = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/lvtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python3, wafHook }:
{ lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python3, waf }:

stdenv.mkDerivation rec {
pname = "lvtk";
Expand All @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-6IoyhBig3Nvc4Y8F0w8b1up6sn8O2RmoUVaBQ//+Aaw=";
};

nativeBuildInputs = [ pkg-config python3 wafHook ];
nativeBuildInputs = [ pkg-config python3 waf.hook ];
buildInputs = [ boost gtkmm2 lv2 ];

enableParallelBuilding = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/ntk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python3, wafHook }:
{ lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python3, waf }:

stdenv.mkDerivation rec {
pname = "ntk";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-NyEdg6e+9CI9V+TIgdpPyH1ei+Vq8pUxD3wPzWY5fEU=";
};

nativeBuildInputs = [ pkg-config wafHook ];
nativeBuildInputs = [ pkg-config waf.hook ];
buildInputs = [
cairo libjpeg libXft python3
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/raul/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, boost, gtk2, pkg-config, python3, wafHook }:
{ lib, stdenv, fetchgit, boost, gtk2, pkg-config, python3, waf }:

stdenv.mkDerivation rec {
pname = "raul";
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "1z37jb6ghc13b8nv8a8hcg669gl8vh4ni9djvfgga9vcz8rmcg8l";
};

nativeBuildInputs = [ pkg-config wafHook python3 ];
nativeBuildInputs = [ pkg-config waf.hook python3 ];
buildInputs = [ boost gtk2 ];

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/suil/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, gtk2, lv2, pkg-config, python3, serd, sord, sratom
, wafHook
, waf
, withQt5 ? true, qt5 ? null
}:

Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06";
};

nativeBuildInputs = [ pkg-config wafHook python3 ];
nativeBuildInputs = [ pkg-config waf.hook python3 ];
buildInputs = [ gtk2 lv2 serd sord sratom ]
++ lib.optionals withQt5 (with qt5; [ qtbase qttools ]);

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/ganv/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkg-config, python3, wafHook }:
{ lib, stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkg-config, python3, waf }:

stdenv.mkDerivation rec {
pname = "ganv";
Expand All @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "01znnalirbqxpz62fbw2c14c8xn117jc92xv6dhb3hln92k9x37f";
};

nativeBuildInputs = [ pkg-config wafHook python3 gtk2 ];
nativeBuildInputs = [ pkg-config waf.hook python3 gtk2 ];
buildInputs = [ graphviz gtkmm2 ];

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/ldb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, docbook-xsl-nons
, docbook_xml_dtd_42
, cmocka
, wafHook
, waf
, libxcrypt
}:

Expand All @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkg-config
python3
wafHook
waf.hook
libxslt
docbook-xsl-nons
docbook_xml_dtd_42
Expand Down
Loading