stdenv: unset SDKROOT on Darwin

The Rust `cc` crate started running `xcrun` when SDKROOT is defined:

a970b0ab0b

Consequently, building crates that use newer versions of the `cc`
crate fail, because xcrun is not available in pure build environments.
This commit is contained in:
Daniël de Kok 2020-09-03 09:13:19 +02:00
parent 0d83d01dfe
commit b1700a7336

View file

@ -34,7 +34,7 @@ in rec {
export NIX_ENFORCE_NO_NATIVE=''${NIX_ENFORCE_NO_NATIVE-1}
export NIX_ENFORCE_PURITY=''${NIX_ENFORCE_PURITY-1}
export NIX_IGNORE_LD_THROUGH_GCC=1
export SDKROOT=
unset SDKROOT
export MACOSX_DEPLOYMENT_TARGET=${macosVersionMin}