@@ -1,18 +1,23 @@
1{ mkDerivation, base, bytestring, jsaddle-webkit2gtk, jsaddle-wkwebview, reflex
1{ mkDerivation, base, bytestring, jsaddle-webkit2gtk, jsaddle-wkwebview, reflex
2−, reflex-dom-core, stdenv, text, ghc
2+, reflex-dom-core, stdenv, text, ghc, hostPlatform, jsaddle-clib, android-activity ? null
4+let isAndroid = hostPlatform.libc == "bionic";
4−mkDerivation {
5+in mkDerivation {
5 pname = "reflex-dom";
6 pname = "reflex-dom";
6 version = "0.4";
7 version = "0.4";
7 src = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [ ".git" "dist" ])) ./.;
8 src = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [ ".git" "dist" ])) ./.;
8 libraryHaskellDepends = [
9 libraryHaskellDepends = [
9 base bytestring reflex reflex-dom-core text
10 base bytestring reflex reflex-dom-core text
10 ] ++ (if ghc.isGhcjs or false then [
11 ] ++ (if ghc.isGhcjs or false then [
11− ] else if stdenv.isDarwin then [
12+ ] else if hostPlatform.isDarwin then [
12 jsaddle-wkwebview
13 jsaddle-wkwebview
14+ ] else if isAndroid then [
14 jsaddle-webkit2gtk
18 jsaddle-webkit2gtk
20+ configureFlags = if isAndroid then [ "-fandroid" ] else [];
16 description = "Functional Reactive Web Apps with Reflex";
21 description = "Functional Reactive Web Apps with Reflex";
17 license = stdenv.lib.licenses.bsd3;
22 license = stdenv.lib.licenses.bsd3;