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:
parent
6e2ed274e1
commit
98d9a74223
10
pkgs/development/tools/build-managers/wafHook/default.nix
Normal file
10
pkgs/development/tools/build-managers/wafHook/default.nix
Normal file
|
@ -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 { };
|
||||
|
||||
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
||||
wafHook = makeSetupHook {
|
||||
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;
|
||||
wafHook = callPackage ../development/tools/build-managers/wafHook { };
|
||||
|
||||
wakelan = callPackage ../tools/networking/wakelan { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue