3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/wafHook/default.nix

10 lines
301 B
Nix
Raw Normal View History

2020-12-10 09:23:19 +00:00
{ lib, stdenv, pkgs, makeSetupHook, waf }:
makeSetupHook {
substitutions = {
inherit waf;
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
};
} ./setup-hook.sh