$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
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
''
# need headers from the Carbon.framework in /System/Library/Frameworks to
# compile this on darwin -- not sure how to handle
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"
substituteInPlace examples/Makefile --replace "-fpascal-strings" ""
'';