From 7e9d4428373f780aed525bb5fc4d25d9d1117421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 30 Apr 2021 13:04:56 +0200 Subject: [PATCH] darwin.CF: Add pre-/postBuild hooks to buildPhase --- pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix b/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix index d16cc3a12c7c..bfe862eb3957 100644 --- a/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix +++ b/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix @@ -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