mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
98d9a74223
This is to enable custom wafHook with custom waf via the override system.
11 lines
330 B
Nix
11 lines
330 B
Nix
{ lib, stdenv, pkgs, python, makeSetupHook, waf }:
|
|
|
|
makeSetupHook {
|
|
deps = [ python ];
|
|
substitutions = {
|
|
inherit waf;
|
|
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
|
|
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
|
|
};
|
|
} ./setup-hook.sh
|