mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
11 lines
322 B
Nix
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
|