on master help sign in
Fix cflags in jsaddle-wkwebview
commitb72f3b8bdbfa26fd5ad9e42446b946919f105ed9 authorMatthew Bauer <mjbauer95@gmail.com> dateFri 15 Jun 2018, 17:20 (8 years ago) parent5ee488c
1 file changed+8
jsaddle-wkwebview/default.nix+8
jsaddle-wkwebview/default.nix+8
@@ -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 [