darwin.CF: fix retry condition (close PR #75528)

Using a function in an if condition when set -e is set doesn't seem to
break out or return false which means the workaround from 41ca86129f
never gets triggered.
This commit is contained in:
Daiderd Jordan 2019-12-11 21:49:21 +01:00 committed by Vladimír Čunát
parent a376f1849d
commit d5d8b3514d

View File

@ -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