98d9a74223
This is to enable custom wafHook with custom waf via the override system.
11 lines
330 B
Nix
11 lines
330 B
Nix
{ lib, stdenv, pkgs, python, makeSetupHook, waf }:
|
|
|
|
makeSetupHook {
|
|
deps = [ python ];
|
|
substitutions = {
|
|
inherit waf;
|
|
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
|
|
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
|
|
};
|
|
} ./setup-hook.sh
|