wafHook: Refactored wafHook to use callPackage (#64250)
This is to enable custom wafHook with custom waf via the override system.
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
{ 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
|
||||||
@@ -6770,14 +6770,7 @@ in
|
|||||||
volumeicon = callPackage ../tools/audio/volumeicon { };
|
volumeicon = callPackage ../tools/audio/volumeicon { };
|
||||||
|
|
||||||
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
||||||
wafHook = makeSetupHook {
|
wafHook = callPackage ../development/tools/build-managers/wafHook { };
|
||||||
deps = [ python ];
|
|
||||||
substitutions = {
|
|
||||||
inherit waf;
|
|
||||||
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
|
|
||||||
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
|
|
||||||
};
|
|
||||||
} ../development/tools/build-managers/waf/setup-hook.sh;
|
|
||||||
|
|
||||||
wakelan = callPackage ../tools/networking/wakelan { };
|
wakelan = callPackage ../tools/networking/wakelan { };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user