@@ -1,5 +1,11 @@
1−{ stdenv, fetchFromGitLab, fetchpatch, python, ensureNewerSourcesForZipFilesHook }:
2−
1+{ stdenv, fetchFromGitLab, fetchpatch, python, ensureNewerSourcesForZipFilesHook
2+# optional list of extra waf tools, e.g. `[ "doxygen" "pytest" ]`
3+, withTools ? null
4+}:
5+let
6+ wafToolsArg = with stdenv.lib.strings;
7+ optionalString (!isNull withTools) " --tools=\"${concatStringsSep "," withTools}\"";
8+in
39stdenv.mkDerivation rec {
410 name = "waf-${version}";
511 version = "2.0.15";
@@ -24,7 +30,7 @@ stdenv.mkDerivation rec {
2430 python waf-light configure
2531 '';
2632 buildPhase = ''
27− python waf-light build
33+ python waf-light build${wafToolsArg}
2834 '';
2935 installPhase = ''
3036 install waf $out