@@ -1,8 +1,10 @@
1−{ hostPlatform, mkDerivation, base, bytestring, filepath, stdenv, text
2−, transformers, android-activity, jsaddle-wkwebview
1+{ hostPlatform, ghc
2+, mkDerivation, base, bytestring, filepath, stdenv, text, transformers
3+, android-activity ? null, jsaddle-wkwebview ? null, ghcjs-dom ? null
34}:
45let isAndroid = hostPlatform.libc == "bionic";
56 isIOS = hostPlatform.isDarwin && hostPlatform.isAArch64;
7+ isGhcjs = ghc.isGhcjs or false;
68in mkDerivation {
79 pname = "obelisk-executable-config";
810 version = "0.1";
@@ -13,12 +15,16 @@ in mkDerivation {
1315 android-activity
1416 ] else if isIOS then [
1517 jsaddle-wkwebview
18+ ] else if isGhcjs then [
19+ ghcjs-dom
1620 ] else [
1721 ]);
1822 configureFlags = if isAndroid then [
1923 "-fandroid"
2024 ] else if isIOS then [
2125 "-fios"
26+ ] else if isGhcjs then [
27+ "-fghcjs"
2228 ] else [
2329 ];
2430 license = stdenv.lib.licenses.bsd3;