diff --git a/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix b/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix index 1df7070e7a3f..4f2f84b3c0a5 100644 --- a/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix +++ b/pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix @@ -76,8 +76,8 @@ stdenv.mkDerivation { # later. buildPhase = stdenv.lib.optionalString true '' for i in {1..512}; do - if ninjaBuildPhase; then - break + if ninja -j $NIX_BUILD_CORES; then + break fi echo >&2