stdenv: unset SDKROOT on Darwin

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

https://github.com/alexcrichton/cc-rs/commit/a970b0ab0beecec1d9c589d2e6aa5f3ad1bd3f9b

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:46:21 +02:00
parent 0d83d01dfe
commit b1700a7336
+1 -1
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}