waf: fix cross-compiling by not overriding python in all-packages.nix (#141821)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
1ee326f74d
commit
2736cee9ae
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue