on master help sign in
Merge pull request #67 from matthewbauer/jsaddle-wkwebview-for-new-nixpkgs

Fix jsaddle-wkwebview iOS SDK

commit6d1ceb70c53cf969bf77bd903e44045b7ce36bdc authorJohn Ericson <Ericson2314@yahoo.com> dateWed 20 Jun 2018, 21:15 (8 years ago) parent7eb50cbb72f3b8
1 file changed+10−2
jsaddle-wkwebview/default.nix+10−2
jsaddle-wkwebview/default.nix+10−2
@@ -7,8 +7,16 @@ mkDerivation {
77 version = "0.9.4.0";
88 src = ./.;
99 libraryHaskellDepends = [ aeson base bytestring jsaddle data-default ];
10− libraryFrameworkDepends = with buildPackages; if hostPlatform.useiOSCross or false then [
11− (assert osx_sdk != null; osx_sdk)
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+
18+ libraryFrameworkDepends = with buildPackages; if hostPlatform.useiOSPrebuilt then [
19+ "${darwin.xcode_8_2}/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System"
1220 ] else [
1321 darwin.libobjc
1422 darwin.apple_sdk.libs.xpc