@@ -7,6 +7,14 @@ mkDerivation {
77 version = "0.9.4.0";
88 src = ./.;
99 libraryHaskellDepends = [ aeson base bytestring jsaddle data-default ];
10+
11+ # HACK(matthewbauer): Make sure framework is pulled in first so that
12+ # CoreFoundation is correct. Eventually we will update
13+ # CoreFoundation in Nixpkgs but that has caused some other issues.
14+ preBuild = stdenv.lib.optionalString hostPlatform.useiOSPrebuilt ''
15+ NIX_CFLAGS_COMPILE="-F${buildPackages.darwin.xcode_8_2}/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks"
16+ '';
17+
1018 libraryFrameworkDepends = with buildPackages; if hostPlatform.useiOSPrebuilt then [
1119 "${darwin.xcode_8_2}/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System"
1220 ] else [