diff --git a/pkgs/development/tools/build-managers/waf/default.nix b/pkgs/development/tools/build-managers/waf/default.nix index 4d4bb6957eaa4..65ea525d5afab 100644 --- a/pkgs/development/tools/build-managers/waf/default.nix +++ b/pkgs/development/tools/build-managers/waf/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitLab, python, ensureNewerSourcesForZipFilesHook +{ lib, stdenv, fetchFromGitLab, python3, ensureNewerSourcesForZipFilesHook # optional list of extra waf tools, e.g. `[ "doxygen" "pytest" ]` , withTools ? null }: @@ -17,7 +17,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-WGGyhvQdFYmC0NOA5VVqCRMF1fvfPcTI42x1nHvz0W0="; }; - buildInputs = [ python ensureNewerSourcesForZipFilesHook ]; + nativeBuildInputs = [ python3 ensureNewerSourcesForZipFilesHook ]; + + # waf bin has #!/usr/bin/env python + buildInputs = [ python3 ]; configurePhase = '' python waf-light configure @@ -29,6 +32,8 @@ stdenv.mkDerivation rec { install -D waf $out/bin/waf ''; + strictDeps = true; + meta = with lib; { description = "Meta build system"; homepage = "https://waf.io"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b012558a2299d..1c5573c2cb3a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10561,7 +10561,7 @@ with pkgs; volumeicon = callPackage ../tools/audio/volumeicon { }; - waf = callPackage ../development/tools/build-managers/waf { python = python3; }; + waf = callPackage ../development/tools/build-managers/waf { }; wafHook = callPackage ../development/tools/build-managers/wafHook { }; wagyu = callPackage ../tools/misc/wagyu {