mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
10 lines
301 B
Nix
10 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
|