darwin.CF: Add pre-/postBuild hooks to buildPhase

This commit is contained in:
Sandro Jäckel 2021-04-30 13:04:56 +02:00 committed by Jonathan Ringer
parent 3b2d3f65b7
commit 7e9d442837

View File

@ -73,7 +73,13 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildPhase = "ninja -j $NIX_BUILD_CORES";
buildPhase = ''
runHook preBuild
ninja -j $NIX_BUILD_CORES
runHook postBuild
'';
# TODO: their build system sorta kinda can do this, but it doesn't seem to work right now
# Also, this includes a bunch of private headers in the framework, which is not what we want