nixpkgs/pkgs/development/tools/build-managers/wafHook/default.nix
2023-01-19 15:00:36 +00:00

11 lines
322 B
Nix

{ lib, stdenv, pkgs, makeSetupHook, waf }:
makeSetupHook {
name = "waf-hook";
substitutions = {
inherit waf;
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
};
} ./setup-hook.sh