nixpkgs-suyu/pkgs/development/tools/build-managers/wafHook/default.nix
2020-12-17 19:01:28 +01:00

9 lines
301 B
Nix

{ 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