on decrease-android-validity help sign in
26 lines 852 B history raw
1{ hostPlatform, ghc
2, mkDerivation, base, base64-bytestring, bytestring, filepath, stdenv, text, transformers
3, transformers-base, ref-tf, primitive, monad-control, reflex, reflex-dom
4, jsaddle
5, android-activity ? null, jsaddle-wkwebview ? null, ghcjs-dom ? null
6}:
7let isAndroid = hostPlatform.libc == "bionic";
8 isIOS = hostPlatform.isDarwin && hostPlatform.isAarch64;
9 isGhcjs = ghc.isGhcjs or false;
10in mkDerivation {
11 pname = "obelisk-executable-config-lookup";
12 version = "0.1";
13 src = ./.;
14 libraryHaskellDepends = [
15 base bytestring filepath text transformers transformers-base ref-tf primitive monad-control reflex reflex-dom jsaddle
16 ] ++ (if isAndroid then [
17 android-activity
18 ] else if isIOS then [
19 jsaddle-wkwebview
20 ] else if isGhcjs then [
21 ghcjs-dom
22 ] else [
23 ]);
24 license = stdenv.lib.licenses.bsd3;