@@ -1,6 +1,6 @@
11{ mkDerivation, base, bytestring, jsaddle-webkit2gtk, jsaddle-wkwebview, jsaddle-warp, reflex
22, reflex-dom-core, stdenv, text, ghc, hostPlatform, jsaddle-clib, android-activity ? null
3−, ghcBackend ? "webkit2gtk"
3+, ghcBackend ? if hostPlatform.isDarwin then "warp" else "webkit2gtk"
44}:
55assert (builtins.elem ghcBackend [ "warp" "webkit2gtk" ]);
66let isAndroid = hostPlatform.libc == "bionic";
@@ -15,12 +15,14 @@ in mkDerivation {
1515 libraryHaskellDepends = [
1616 base bytestring reflex reflex-dom-core text
1717 ] ++ (if ghc.isGhcjs or false then [
18− ] else if hostPlatform.isDarwin then [
18+ ] else if hostPlatform.isiOS then [
1919 jsaddle-wkwebview
20− jsaddle-warp
2120 ] else if isAndroid then [
2221 jsaddle-clib
2322 android-activity
23+ ] else if hostPlatform.isMacOS then [
24+ jsaddle-wkwebview
25+ ghcBackendPackage
2426 ] else [
2527 ghcBackendPackage
2628 ]);