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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user