nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge branch 'waf-cross' of https://github.com/atorres1985-contrib/nixpkgs into HEAD

Yureka ef69e91c b4fdbf27

+128 -112
+30 -19
doc/hooks/waf.section.md
··· 1 - # waf.hook {#wafhook} 1 + # wafHook {#wafHook} 2 2 3 3 [Waf](https://waf.io) is a Python-based software building system. 4 4 5 - In Nixpkgs, `waf.hook` overrides the default configure, build, and install phases. 5 + In Nixpkgs, `wafHook` overrides the default configure, build, and install phases. 6 6 7 - ## Variables controlling waf.hook {#variablesControllingWafHook} 7 + ## Variables controlling wafHook {#variablesControllingWafHook} 8 8 9 - ### `wafPath` {#wafPath} 9 + ### `wafHook` Exclusive Variables {#wafHookExclusiveVariables} 10 + 11 + The variables below are exclusive of `wafHook`. 12 + 13 + #### `wafPath` {#wafPath} 10 14 11 15 Location of the `waf` tool. It defaults to `./waf`, to honor software projects that include it directly inside their source trees. 12 16 13 - If `wafPath` doesn't exist, then `waf.hook` will copy the `waf` provided from Nixpkgs to it. 17 + If `wafPath` doesn't exist, then `wafHook` will copy the `waf` provided from Nixpkgs to it. 14 18 15 - ### `wafFlags` {#wafFlags} 19 + #### `wafFlags` {#wafFlags} 16 20 17 - 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. 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. 18 22 19 - ### `dontAddWafCrossFlags` {#dontAddWafCrossFlags} 23 + #### `dontAddWafCrossFlags` {#dontAddWafCrossFlags} 20 24 21 25 When set to `true`, don't add cross compilation flags during configure phase. 22 26 23 - ### `dontUseWafConfigure` {#dontUseWafConfigure} 27 + #### `dontUseWafConfigure` {#dontUseWafConfigure} 24 28 25 29 When set to true, don't use the predefined `wafConfigurePhase`. 26 30 27 - ### `dontUseWafBuild` {#dontUseWafBuild} 31 + #### `dontUseWafBuild` {#dontUseWafBuild} 28 32 29 33 When set to true, don't use the predefined `wafBuildPhase`. 30 34 31 - ### `dontUseWafInstall` {#dontUseWafInstall} 35 + #### `dontUseWafInstall` {#dontUseWafInstall} 32 36 33 37 When set to true, don't use the predefined `wafInstallPhase`. 34 38 35 - ### Variables honored by waf.hook {#variablesHonoredByWafHook} 39 + ### Similar variables {#similarVariables} 36 40 37 - The following variables commonly used by `stdenv.mkDerivation` are also honored by `waf.hook`. 41 + The following variables are similar to their `stdenv.mkDerivation` counterparts. 42 + 43 + | `wafHook` Variable | `stdenv.mkDerivation` Counterpart | 44 + |-----------------------|-----------------------------------| 45 + | `wafConfigureFlags` | `configureFlags` | 46 + | `wafConfigureTargets` | `configureTargets` | 47 + | `wafBuildFlags` | `buildFlags` | 48 + | `wafBuildTargets` | `buildTargets` | 49 + | `wafInstallFlags` | `installFlags` | 50 + | `wafInstallTargets` | `installTargets` | 51 + 52 + ### Honored variables {#honoredVariables} 53 + 54 + The following variables commonly used by `stdenv.mkDerivation` are honored by `wafHook`. 38 55 39 56 - `prefixKey` 40 - - `configureFlags` 41 - - `configureTargets` 42 57 - `enableParallelBuilding` 43 58 - `enableParallelInstalling` 44 - - `buildFlags` 45 - - `buildTargets` 46 - - `installFlags` 47 - - `installTargets`
+2 -2
pkgs/applications/audio/ams-lv2/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkg-config 2 - , waf, python3 }: 2 + , wafHook, python3 }: 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "ams-lv2"; ··· 12 12 sha256 = "1lz2mvk4gqsyf92yxd3aaldx0d0qi28h4rnnvsaz4ls0ccqm80nk"; 13 13 }; 14 14 15 - nativeBuildInputs = [ pkg-config waf.hook python3 ]; 15 + nativeBuildInputs = [ pkg-config wafHook python3 ]; 16 16 buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ]; 17 17 18 18 meta = with lib; {
+3 -3
pkgs/applications/audio/ardour/6.nix
··· 50 50 , suil 51 51 , taglib 52 52 , vamp-plugin-sdk 53 - , waf 53 + , wafHook 54 54 , xjadeo 55 55 , videoSupport ? true 56 56 }: ··· 79 79 perl 80 80 pkg-config 81 81 python3 82 - waf.hook 82 + wafHook 83 83 ]; 84 84 85 85 buildInputs = [ ··· 129 129 vamp-plugin-sdk 130 130 ] ++ lib.optionals videoSupport [ harvid xjadeo ]; 131 131 132 - configureFlags = [ 132 + wafConfigureFlags = [ 133 133 "--cxx11" 134 134 "--docs" 135 135 "--freedesktop"
+3 -3
pkgs/applications/audio/ardour/default.nix
··· 52 52 , suil 53 53 , taglib 54 54 , vamp-plugin-sdk 55 - , waf 55 + , wafHook 56 56 , xjadeo 57 57 , videoSupport ? true 58 58 }: ··· 100 100 perl 101 101 pkg-config 102 102 python3 103 - waf.hook 103 + wafHook 104 104 ]; 105 105 106 106 buildInputs = [ ··· 150 150 vamp-plugin-sdk 151 151 ] ++ lib.optionals videoSupport [ harvid xjadeo ]; 152 152 153 - configureFlags = [ 153 + wafConfigureFlags = [ 154 154 "--cxx11" 155 155 "--docs" 156 156 "--freedesktop"
+2 -2
pkgs/applications/audio/fomp/default.nix
··· 1 - { lib, stdenv, fetchurl, lv2, pkg-config, python3, waf }: 1 + { lib, stdenv, fetchurl, lv2, pkg-config, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "fomp"; ··· 9 9 sha256 = "sha256-xnGijydiO3B7BjSlryFuH1j/OPio9hCYbniq2IXp2W8="; 10 10 }; 11 11 12 - nativeBuildInputs = [ pkg-config waf.hook ]; 12 + nativeBuildInputs = [ pkg-config wafHook ]; 13 13 buildInputs = [ lv2 python3 ]; 14 14 15 15 meta = with lib; {
+3 -3
pkgs/applications/audio/guitarix/default.nix
··· 30 30 , serd 31 31 , sord 32 32 , sratom 33 - , waf 33 + , wafHook 34 34 , wrapGAppsHook 35 35 , zita-convolver 36 36 , zita-resampler ··· 56 56 intltool 57 57 pkg-config 58 58 python3 59 - waf.hook 59 + wafHook 60 60 wrapGAppsHook 61 61 ]; 62 62 ··· 89 89 zita-resampler 90 90 ]; 91 91 92 - configureFlags = [ 92 + wafConfigureFlags = [ 93 93 "--no-font-cache-update" 94 94 "--shared-lib" 95 95 "--no-desktop-update"
+2 -2
pkgs/applications/audio/ingen/default.nix
··· 1 1 { lib, stdenv, fetchgit, boost, ganv, glibmm, gtkmm2, libjack2, lilv 2 2 , lv2, pkg-config, python3, raul, serd, sord, sratom 3 - , waf 3 + , wafHook 4 4 , suil 5 5 }: 6 6 ··· 16 16 deepClone = true; 17 17 }; 18 18 19 - nativeBuildInputs = [ pkg-config waf.hook python3 python3.pkgs.wrapPython ]; 19 + nativeBuildInputs = [ pkg-config wafHook python3 python3.pkgs.wrapPython ]; 20 20 buildInputs = [ 21 21 boost ganv glibmm gtkmm2 libjack2 lilv lv2 22 22 python3 raul serd sord sratom suil
+2 -2
pkgs/applications/audio/jalv/default.nix
··· 1 1 { lib, stdenv, fetchurl, gtk2, libjack2, lilv, lv2, pkg-config, python3 2 - , serd, sord , sratom, suil, waf }: 2 + , serd, sord , sratom, suil, wafHook }: 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "jalv"; ··· 10 10 sha256 = "sha256-ktFBeBtmQ3MgfDQ868XpuM7UYfryb9zLld8AB7BjnhY="; 11 11 }; 12 12 13 - nativeBuildInputs = [ pkg-config waf.hook ]; 13 + nativeBuildInputs = [ pkg-config wafHook ]; 14 14 buildInputs = [ 15 15 gtk2 libjack2 lilv lv2 python3 serd sord sratom suil 16 16 ];
+2 -2
pkgs/applications/audio/mda-lv2/default.nix
··· 1 - { lib, stdenv, fetchurl, fftwSinglePrec, lv2, pkg-config, waf, python3 }: 1 + { lib, stdenv, fetchurl, fftwSinglePrec, lv2, pkg-config, wafHook, python3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mda-lv2"; ··· 9 9 sha256 = "sha256-zWYRcCSuBJzzrKg/npBKcCdyJOI6lp9yqcXQEKSYV9s="; 10 10 }; 11 11 12 - nativeBuildInputs = [ pkg-config waf.hook python3 ]; 12 + nativeBuildInputs = [ pkg-config wafHook python3 ]; 13 13 buildInputs = [ fftwSinglePrec lv2 ]; 14 14 15 15 meta = with lib; {
+2 -2
pkgs/applications/audio/non/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, pkg-config, python3, cairo, libjpeg, ntk, libjack2 2 - , libsndfile, ladspaH, liblo, libsigcxx, lrdf, waf 2 + , libsndfile, ladspaH, liblo, libsigcxx, lrdf, wafHook 3 3 }: 4 4 5 5 stdenv.mkDerivation { ··· 12 12 sha256 = "sha256-iMJNMDytNXpEkUhL0RILSd25ixkm8HL/edtOZta0Pf4="; 13 13 }; 14 14 15 - nativeBuildInputs = [ pkg-config waf.hook ]; 15 + nativeBuildInputs = [ pkg-config wafHook ]; 16 16 buildInputs = [ python3 cairo libjpeg ntk libjack2 libsndfile 17 17 ladspaH liblo libsigcxx lrdf 18 18 ];
+2 -2
pkgs/applications/audio/patchage/default.nix
··· 10 10 , libjack2 11 11 , pkg-config 12 12 , python3 13 - , waf 13 + , wafHook 14 14 }: 15 15 16 16 stdenv.mkDerivation rec { ··· 35 35 gtkmm2 36 36 libjack2 37 37 python3 38 - waf.hook 38 + wafHook 39 39 ]; 40 40 41 41 meta = {
+2 -2
pkgs/applications/misc/hamster/default.nix
··· 1 1 { lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3 2 - , wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, waf }: 2 + , wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }: 3 3 4 4 python3Packages.buildPythonApplication rec { 5 5 pname = "hamster"; ··· 19 19 wrapGAppsHook 20 20 intltool 21 21 itstool 22 - waf.hook 22 + wafHook 23 23 glib 24 24 gobject-introspection 25 25 ];
+2 -2
pkgs/applications/misc/kupfer/default.nix
··· 10 10 , desktop-file-utils 11 11 , shared-mime-info 12 12 , wrapGAppsHook 13 - , waf 13 + , wafHook 14 14 , bash 15 15 , dbus 16 16 }: ··· 31 31 nativeBuildInputs = [ 32 32 wrapGAppsHook intltool 33 33 # For setup hook 34 - gobject-introspection waf.hook 34 + gobject-introspection wafHook 35 35 itstool # for help pages 36 36 desktop-file-utils # for update-desktop-database 37 37 shared-mime-info # for update-mime-info
+3 -3
pkgs/applications/office/semantik/default.nix
··· 3 3 , mkDerivation 4 4 , fetchFromGitLab 5 5 , fetchpatch 6 - , waf 6 + , wafHook 7 7 , pkg-config 8 8 , cmake 9 9 , qtbase ··· 65 65 --replace /usr/include/KF5/KDELibs4Support "${lib.getDev kdelibs4support}/include/KF5/KDELibs4Support" 66 66 ''; 67 67 68 - nativeBuildInputs = [ (lib.getDev qtsvg) (lib.getLib qtsvg) python3 pkg-config waf.hook cmake ]; 68 + nativeBuildInputs = [ (lib.getDev qtsvg) (lib.getLib qtsvg) python3 pkg-config wafHook cmake ]; 69 69 70 70 buildInputs = [ 71 71 qtbase ··· 85 85 kdelibs4support 86 86 ]; 87 87 88 - configureFlags = [ 88 + wafConfigureFlags = [ 89 89 "--qtlibs=${lib.getLib qtbase}/lib" 90 90 ]; 91 91
+2 -2
pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin/default.nix
··· 1 1 { lib, stdenv, pkg-config, fetchFromGitHub, python3, vala 2 - , gtk3, libwnck, libxfce4util, xfce4-panel, waf, xfce 2 + , gtk3, libwnck, libxfce4util, xfce4-panel, wafHook, xfce 3 3 , gitUpdater 4 4 }: 5 5 ··· 14 14 sha256 = "sha256-aKrJzf9rwCyXAJsRIXdBzmJBASuXD5I5kZrp+atx4FA="; 15 15 }; 16 16 17 - nativeBuildInputs = [ pkg-config vala waf.hook python3 ]; 17 + nativeBuildInputs = [ pkg-config vala wafHook python3 ]; 18 18 buildInputs = [ gtk3 libwnck libxfce4util xfce4-panel ]; 19 19 20 20 postPatch = ''
+2 -2
pkgs/development/libraries/aubio/default.nix
··· 1 1 { lib, stdenv, fetchurl, alsa-lib, fftw, libjack2, libsamplerate 2 - , libsndfile, pkg-config, python3, waf 2 + , libsndfile, pkg-config, python3, wafHook 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { ··· 11 11 sha256 = "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"; 12 12 }; 13 13 14 - nativeBuildInputs = [ pkg-config python3 waf.hook ]; 14 + nativeBuildInputs = [ pkg-config python3 wafHook ]; 15 15 buildInputs = [ alsa-lib fftw libjack2 libsamplerate libsndfile ]; 16 16 17 17 strictDeps = true;
+2 -2
pkgs/development/libraries/audio/lilv/default.nix
··· 1 - { lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, waf 1 + { lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, wafHook 2 2 3 3 # test derivations 4 4 , pipewire ··· 17 17 18 18 patches = [ ./lilv-pkgconfig.patch ]; 19 19 20 - nativeBuildInputs = [ pkg-config python3 waf.hook ]; 20 + nativeBuildInputs = [ pkg-config python3 wafHook ]; 21 21 buildInputs = [ serd sord sratom ]; 22 22 propagatedBuildInputs = [ lv2 ]; 23 23 dontAddWafCrossFlags = true;
+3 -3
pkgs/development/libraries/audio/lvtk/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python3, waf }: 1 + { lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "lvtk"; ··· 11 11 sha256 = "sha256-6IoyhBig3Nvc4Y8F0w8b1up6sn8O2RmoUVaBQ//+Aaw="; 12 12 }; 13 13 14 - nativeBuildInputs = [ pkg-config python3 waf.hook ]; 14 + nativeBuildInputs = [ pkg-config python3 wafHook ]; 15 15 buildInputs = [ boost gtkmm2 lv2 ]; 16 16 17 17 enableParallelBuilding = true; ··· 27 27 sed -e '/print/d' -i wscript 28 28 ''; 29 29 30 - configureFlags = [ 30 + wafConfigureFlags = [ 31 31 "--boost-includes=${boost.dev}/include" 32 32 "--boost-libs=${boost.out}/lib" 33 33 ];
+2 -2
pkgs/development/libraries/audio/ntk/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python3, waf }: 1 + { lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ntk"; ··· 10 10 sha256 = "sha256-NyEdg6e+9CI9V+TIgdpPyH1ei+Vq8pUxD3wPzWY5fEU="; 11 11 }; 12 12 13 - nativeBuildInputs = [ pkg-config waf.hook ]; 13 + nativeBuildInputs = [ pkg-config wafHook ]; 14 14 buildInputs = [ 15 15 cairo libjpeg libXft python3 16 16 ];
+2 -2
pkgs/development/libraries/audio/raul/default.nix
··· 1 - { lib, stdenv, fetchgit, boost, gtk2, pkg-config, python3, waf }: 1 + { lib, stdenv, fetchgit, boost, gtk2, pkg-config, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "raul"; ··· 12 12 sha256 = "1z37jb6ghc13b8nv8a8hcg669gl8vh4ni9djvfgga9vcz8rmcg8l"; 13 13 }; 14 14 15 - nativeBuildInputs = [ pkg-config waf.hook python3 ]; 15 + nativeBuildInputs = [ pkg-config wafHook python3 ]; 16 16 buildInputs = [ boost gtk2 ]; 17 17 18 18 strictDeps = true;
+2 -2
pkgs/development/libraries/audio/suil/default.nix
··· 1 1 { stdenv, lib, fetchurl, gtk2, lv2, pkg-config, python3, serd, sord, sratom 2 - , waf 2 + , wafHook 3 3 , withQt5 ? true, qt5 ? null 4 4 }: 5 5 ··· 12 12 sha256 = "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"; 13 13 }; 14 14 15 - nativeBuildInputs = [ pkg-config waf.hook python3 ]; 15 + nativeBuildInputs = [ pkg-config wafHook python3 ]; 16 16 buildInputs = [ gtk2 lv2 serd sord sratom ] 17 17 ++ lib.optionals withQt5 (with qt5; [ qtbase qttools ]); 18 18
+2 -2
pkgs/development/libraries/ganv/default.nix
··· 1 - { lib, stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkg-config, python3, waf }: 1 + { lib, stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkg-config, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ganv"; ··· 11 11 sha256 = "01znnalirbqxpz62fbw2c14c8xn117jc92xv6dhb3hln92k9x37f"; 12 12 }; 13 13 14 - nativeBuildInputs = [ pkg-config waf.hook python3 gtk2 ]; 14 + nativeBuildInputs = [ pkg-config wafHook python3 gtk2 ]; 15 15 buildInputs = [ graphviz gtkmm2 ]; 16 16 17 17 strictDeps = true;
+3 -3
pkgs/development/libraries/ldb/default.nix
··· 11 11 , docbook-xsl-nons 12 12 , docbook_xml_dtd_42 13 13 , cmocka 14 - , waf 14 + , wafHook 15 15 , libxcrypt 16 16 }: 17 17 ··· 29 29 nativeBuildInputs = [ 30 30 pkg-config 31 31 python3 32 - waf.hook 32 + wafHook 33 33 libxslt 34 34 docbook-xsl-nons 35 35 docbook_xml_dtd_42 ··· 57 57 58 58 wafPath = "buildtools/bin/waf"; 59 59 60 - configureFlags = [ 60 + wafConfigureFlags = [ 61 61 "--bundled-libraries=NONE" 62 62 "--builtin-libraries=replace" 63 63 "--without-ldb-lmdb"
+3 -3
pkgs/development/libraries/ndn-cxx/default.nix
··· 5 5 , pkg-config 6 6 , python3 7 7 , python3Packages 8 - , waf 8 + , wafHook 9 9 , boost179 10 10 , openssl 11 11 , sqlite ··· 22 22 sha256 = "sha256-nnnxlkYVTSRB6ZcuIUDFol999+amGtqegHXK+06ITK8="; 23 23 }; 24 24 25 - nativeBuildInputs = [ doxygen pkg-config python3 python3Packages.sphinx waf.hook ]; 25 + nativeBuildInputs = [ doxygen pkg-config python3 python3Packages.sphinx wafHook ]; 26 26 27 27 buildInputs = [ boost179 openssl sqlite ]; 28 28 29 - configureFlags = [ 29 + wafConfigureFlags = [ 30 30 "--with-openssl=${openssl.dev}" 31 31 "--boost-includes=${boost179.dev}/include" 32 32 "--boost-libs=${boost179.out}/lib"
+3 -3
pkgs/development/libraries/talloc/default.nix
··· 8 8 , docbook-xsl-nons 9 9 , docbook_xml_dtd_42 10 10 , fixDarwinDylibNames 11 - , waf 11 + , wafHook 12 12 }: 13 13 14 14 stdenv.mkDerivation rec { ··· 23 23 nativeBuildInputs = [ 24 24 pkg-config 25 25 python3 26 - waf.hook 26 + wafHook 27 27 docbook-xsl-nons 28 28 docbook_xml_dtd_42 29 29 ] ++ lib.optionals stdenv.isDarwin [ ··· 46 46 47 47 wafPath = "buildtools/bin/waf"; 48 48 49 - configureFlags = [ 49 + wafConfigureFlags = [ 50 50 "--enable-talloc-compat1" 51 51 "--bundled-libraries=NONE" 52 52 "--builtin-libraries=replace"
+3 -3
pkgs/development/libraries/tdb/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchurl 3 3 , pkg-config 4 - , waf 4 + , wafHook 5 5 , python3 6 6 , readline 7 7 , libxslt ··· 22 22 nativeBuildInputs = [ 23 23 python3 24 24 pkg-config 25 - waf.hook 25 + wafHook 26 26 libxslt 27 27 docbook-xsl-nons 28 28 docbook_xml_dtd_45 ··· 43 43 44 44 wafPath = "buildtools/bin/waf"; 45 45 46 - configureFlags = [ 46 + wafConfigureFlags = [ 47 47 "--bundled-libraries=NONE" 48 48 "--builtin-libraries=replace" 49 49 ];
+3 -3
pkgs/development/libraries/tevent/default.nix
··· 9 9 , docbook-xsl-nons 10 10 , docbook_xml_dtd_42 11 11 , which 12 - , waf 12 + , wafHook 13 13 , libxcrypt 14 14 }: 15 15 ··· 29 29 libxslt 30 30 docbook-xsl-nons 31 31 docbook_xml_dtd_42 32 - waf.hook 32 + wafHook 33 33 ]; 34 34 35 35 buildInputs = [ ··· 49 49 50 50 wafPath = "buildtools/bin/waf"; 51 51 52 - configureFlags = [ 52 + wafConfigureFlags = [ 53 53 "--bundled-libraries=NONE" 54 54 "--builtin-libraries=replace" 55 55 ];
+1 -1
pkgs/development/tools/build-managers/waf/hook.nix
··· 13 13 # waf is not inserted into propagatedBuildInputs, rather it is inserted 14 14 # directly 15 15 inherit waf; 16 - crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system) 16 + wafCrossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system) 17 17 ''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"''; 18 18 }; 19 19
+10 -10
pkgs/development/tools/build-managers/waf/setup-hook.sh
··· 18 18 19 19 local flagsArray=( 20 20 $prefixFlag 21 - $configureFlags "${configureFlagsArray[@]}" 22 - ${configureTargets:-configure} 21 + $wafConfigureFlags "${wafConfigureFlagsArray[@]}" 22 + ${wafConfigureTargets:-configure} 23 23 ) 24 24 25 25 if [ -z "${dontAddWafCrossFlags:-}" ]; then 26 - flagsArray+=(@crossFlags@) 26 + flagsArray+=(@wafCrossFlags@) 27 27 fi 28 28 29 - echoCmd 'configure flags' "${flagsArray[@]}" 29 + echoCmd 'waf configure flags' "${flagsArray[@]}" 30 30 python "$wafPath" "${flagsArray[@]}" 31 31 32 32 if ! [[ -v enableParallelBuilding ]]; then ··· 51 51 local flagsArray=( 52 52 ${enableParallelBuilding:+-j ${NIX_BUILD_CORES}} 53 53 $wafFlags ${wafFlagsArray[@]} 54 - $buildFlags ${buildFlagsArray[@]} 55 - ${buildTargets:-build} 54 + $wafBuildFlags ${wafBuildFlagsArray[@]} 55 + ${wafBuildTargets:-build} 56 56 ) 57 57 58 - echoCmd 'build flags' "${flagsArray[@]}" 58 + echoCmd 'waf build flags' "${flagsArray[@]}" 59 59 python "$wafPath" "${flagsArray[@]}" 60 60 61 61 runHook postBuild ··· 71 71 local flagsArray=( 72 72 ${enableParallelInstalling:+-j ${NIX_BUILD_CORES}} 73 73 $wafFlags ${wafFlagsArray[@]} 74 - $installFlags ${installFlagsArray[@]} 75 - ${installTargets:-install} 74 + $wafInstallFlags ${wafInstallFlagsArray[@]} 75 + ${wafInstallTargets:-install} 76 76 ) 77 77 78 - echoCmd 'install flags' "${flagsArray[@]}" 78 + echoCmd 'waf install flags' "${flagsArray[@]}" 79 79 python "$wafPath" "${flagsArray[@]}" 80 80 81 81 runHook postInstall
+3 -3
pkgs/misc/jackaudio/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, pkg-config, python3Packages, makeWrapper 2 2 , libsamplerate, libsndfile, readline, eigen, celt 3 - , waf 3 + , wafHook 4 4 # Darwin Dependencies 5 5 , aften, AudioUnit, CoreAudio, libobjc, Accelerate 6 6 ··· 39 39 40 40 outputs = [ "out" "dev" ]; 41 41 42 - nativeBuildInputs = [ pkg-config python makeWrapper waf.hook ]; 42 + nativeBuildInputs = [ pkg-config python makeWrapper wafHook ]; 43 43 buildInputs = [ libsamplerate libsndfile readline eigen celt 44 44 optDbus optPythonDBus optLibffado optAlsaLib optLibopus 45 45 ] ++ lib.optionals stdenv.isDarwin [ ··· 52 52 53 53 dontAddWafCrossFlags = true; 54 54 55 - configureFlags = [ 55 + wafConfigureFlags = [ 56 56 "--classic" 57 57 "--autostart=${if (optDbus != null) then "dbus" else "classic"}" 58 58 ] ++ lib.optional (optDbus != null) "--dbus"
+2 -2
pkgs/os-specific/linux/pflask/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, python3, waf }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, python3, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "pflask"; ··· 21 21 }) 22 22 ]; 23 23 24 - nativeBuildInputs = [ python3 waf.hook ]; 24 + nativeBuildInputs = [ python3 wafHook ]; 25 25 26 26 postInstall = '' 27 27 mkdir -p $out/bin
+3 -3
pkgs/servers/nfd/default.nix
··· 8 8 , pkg-config 9 9 , sphinx 10 10 , systemd 11 - , waf 11 + , wafHook 12 12 , websocketpp 13 13 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd 14 14 , withWebSocket ? true ··· 26 26 fetchSubmodules = true; 27 27 }; 28 28 29 - nativeBuildInputs = [ pkg-config sphinx waf.hook ]; 29 + nativeBuildInputs = [ pkg-config sphinx wafHook ]; 30 30 buildInputs = [ libpcap ndn-cxx openssl websocketpp ] ++ lib.optional withSystemd systemd; 31 31 32 - configureFlags = [ 32 + wafConfigureFlags = [ 33 33 "--boost-includes=${boost179.dev}/include" 34 34 "--boost-libs=${boost179.out}/lib" 35 35 "--with-tests"
+3 -3
pkgs/servers/samba/4.x.nix
··· 1 1 { lib, stdenv 2 2 , buildPackages 3 3 , fetchurl 4 - , waf 4 + , wafHook 5 5 , pkg-config 6 6 , bison 7 7 , flex ··· 70 70 71 71 nativeBuildInputs = [ 72 72 python3Packages.python 73 - waf.hook 73 + wafHook 74 74 pkg-config 75 75 bison 76 76 flex ··· 135 135 export PYTHONHASHSEED=1 136 136 ''; 137 137 138 - configureFlags = [ 138 + wafConfigureFlags = [ 139 139 "--with-static-modules=NONE" 140 140 "--with-shared-modules=ALL" 141 141 "--enable-fhs"
+2 -2
pkgs/tools/graphics/blockhash/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, python3, pkg-config, imagemagick, waf }: 1 + { lib, stdenv, fetchFromGitHub, python3, pkg-config, imagemagick, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "blockhash"; ··· 11 11 sha256 = "0x3lvhnkb4c3pyq6p81qnnqimz35wpippiac506dgjx3b1848v35"; 12 12 }; 13 13 14 - nativeBuildInputs = [ python3 pkg-config waf.hook ]; 14 + nativeBuildInputs = [ python3 pkg-config wafHook ]; 15 15 buildInputs = [ imagemagick ]; 16 16 17 17 strictDeps = true;
+3 -3
pkgs/tools/networking/ndn-tools/default.nix
··· 7 7 , openssl 8 8 , pkg-config 9 9 , sphinx 10 - , waf 10 + , wafHook 11 11 }: 12 12 13 13 stdenv.mkDerivation rec { ··· 32 32 EOF 33 33 ''; 34 34 35 - nativeBuildInputs = [ pkg-config sphinx waf.hook ]; 35 + nativeBuildInputs = [ pkg-config sphinx wafHook ]; 36 36 buildInputs = [ libpcap ndn-cxx openssl ]; 37 37 38 - configureFlags = [ 38 + wafConfigureFlags = [ 39 39 "--boost-includes=${boost.dev}/include" 40 40 "--boost-libs=${boost.out}/lib" 41 41 "--with-tests"
+3 -3
pkgs/tools/networking/saldl/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchFromGitHub 3 3 , pkg-config 4 - , waf 4 + , wafHook 5 5 , python3 6 6 , asciidoc 7 7 , docbook_xml_dtd_45 ··· 25 25 26 26 nativeBuildInputs = [ 27 27 pkg-config 28 - waf.hook 28 + wafHook 29 29 python3 30 30 asciidoc 31 31 docbook_xml_dtd_45 ··· 36 36 37 37 buildInputs = [ curl libevent ]; 38 38 39 - configureFlags = [ "--saldl-version ${version}" "--no-werror" ]; 39 + wafConfigureFlags = [ "--saldl-version ${version}" "--no-werror" ]; 40 40 41 41 outputs = [ "out" "man" ]; 42 42
-1
pkgs/top-level/aliases.nix
··· 1865 1865 inherit (libsForQt5.mauiPackages) vvave; # added 2022-05-17 1866 1866 1867 1867 ### W ### 1868 - wafHook = waf.hook; # Added 2023-08-23 1869 1868 wavesurfer = throw "wavesurfer has been removed: depended on snack which has been removed"; # Added 2022-04-21 1870 1869 waybar-hyprland = throw "waybar-hyprland has been removed: hyprland support is now built into waybar by default."; # Added 2023-08-21 1871 1870 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
··· 14856 14856 volumeicon = callPackage ../tools/audio/volumeicon { }; 14857 14857 14858 14858 waf = callPackage ../development/tools/build-managers/waf { }; 14859 + # An alias to work around the splicing incidents 14860 + # Related: 14861 + # https://github.com/NixOS/nixpkgs/issues/204303 14862 + # https://github.com/NixOS/nixpkgs/issues/211340 14863 + # https://github.com/NixOS/nixpkgs/issues/227327 14864 + wafHook = waf.hook; 14859 14865 14860 14866 waf-tester = callPackage ../tools/security/waf-tester { }; 14861 14867