$xcodePath -> $SDKROOT

SDKROOT is standard. In particular, this fixes the cmake build on
Mac OS X 10.9.
This commit is contained in:
Eelco Dolstra
2014-07-24 21:53:46 +02:00
parent bf0d518c67
commit ac8775dd96
4 changed files with 10 additions and 10 deletions
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
# compile this on darwin -- not sure how to handle
preConfigure = stdenv.lib.optionalString stdenv.isDarwin
''
NIX_CFLAGS_COMPILE+=" -I$xcodePath/System/Library/Frameworks/Carbon.framework/Versions/A/Headers"
NIX_CFLAGS_COMPILE+=" -I$SDKROOT/System/Library/Frameworks/Carbon.framework/Versions/A/Headers"
'';
# Needed on Darwin.