chromium.mkDerivation: run {pre,post}Configure

This allows us to add custom steps.
This commit is contained in:
Nikolay Amiantov 2017-02-08 22:48:05 +03:00
parent 3effe0b9b5
commit b2eb9f4a96

View File

@ -177,11 +177,15 @@ let
} // (extraAttrs.gnFlags or {})); } // (extraAttrs.gnFlags or {}));
configurePhase = '' configurePhase = ''
runHook preConfigure
# This is to ensure expansion of $out. # This is to ensure expansion of $out.
libExecPath="${libExecPath}" libExecPath="${libExecPath}"
python build/linux/unbundle/replace_gn_files.py \ python build/linux/unbundle/replace_gn_files.py \
--system-libraries ${toString gnSystemLibraries} --system-libraries ${toString gnSystemLibraries}
gn gen --args=${escapeShellArg gnFlags} out/Release gn gen --args=${escapeShellArg gnFlags} out/Release
runHook postConfigure
''; '';
buildPhase = let buildPhase = let