wafHook: cross compilation support
for this to work, wafHook must be in nativeBuildInputs.
This commit is contained in:
parent
1001d0034c
commit
3d60a00c63
@ -10,7 +10,7 @@ wafConfigurePhase() {
|
||||
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
|
||||
fi
|
||||
|
||||
local flagsArray=();
|
||||
local flagsArray=(@crossFlags@);
|
||||
for flag in $configureFlags "${configureFlagsArray[@]}";
|
||||
do
|
||||
if [[
|
||||
|
@ -6366,7 +6366,11 @@ in
|
||||
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
||||
wafHook = makeSetupHook {
|
||||
deps = [ python ];
|
||||
substitutions = { inherit waf; };
|
||||
substitutions = {
|
||||
inherit waf;
|
||||
crossFlags = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform)
|
||||
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
|
||||
};
|
||||
} ../development/tools/build-managers/waf/setup-hook.sh;
|
||||
|
||||
wakelan = callPackage ../tools/networking/wakelan { };
|
||||
|
Loading…
Reference in New Issue
Block a user