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