1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/build-managers/wafHook/default.nix
xbreak 98d9a74223 wafHook: Refactored wafHook to use callPackage (#64250)
This is to enable custom wafHook with custom waf via the override
system.
2019-07-03 15:20:28 -04:00

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