obelisk
obelisk copied to clipboard
is there a way for build front-end application?
I wanna using obelisk to develop a front-end application and I can't find any docs for build or output javascript for me.
Does it fessible to develop it and how should I do?
nix-build -o frontend-result -A ghcjs.frontend
will build the frontend as javascript and place it in the directory frontend-result.
Really what is doing this is reflex/reflex-dom so you can find more information here: https://github.com/reflex-frp/reflex-platform/blob/develop/docs/project-development.rst
nix-build -o frontend-result -A ghcjs.frontend
will build the frontend as javascript and place it in the directory frontend-result.Really what is doing this is reflex/reflex-dom so you can find more information here: https://github.com/reflex-frp/reflex-platform/blob/develop/docs/project-development.rst
these derivations will be built:
/nix/store/2r6413483cgydyb1avs6lir7bvcwcr45-frontend-0.1-js-unknown-ghcjs.drv
these paths will be fetched (6.31 MiB download, 171.24 MiB unpacked):
/nix/store/1r3pdbhnxbw3xwy2s6i477sd0ny1rhxi-dependent-sum-0.7.1.0-js-unknown-ghcjs
/nix/store/2lvjy3a018gnq8hqbrmqazizhwk1pzaw-obelisk-route-0.2-js-unknown-ghcjs
/nix/store/49jmq6cqhajz6wmywa86vzgs41pmk6x0-obelisk-executable-config-inject-0.1-js-unknown-ghcjs
/nix/store/4rvi24r9mwjkdj4z2cr45cns4j85lkww-some-1.0.1-js-unknown-ghcjs
/nix/store/56wkaz558yz3c1xymj9vmssmxfp5p6xj-prim-uniq-0.2-js-unknown-ghcjs
/nix/store/5r0agwibam8mcnqypsjskhdiaklhirkr-obelisk-executable-config-lookup-0.1.1-js-unknown-ghcjs
/nix/store/5yk4xikbr8fq46i066xxdyyk9j034rwl-common-0.1-js-unknown-ghcjs
/nix/store/82v86rjbddsig4gi175dil19z92njz55-patch-0.0.3.2-js-unknown-ghcjs
/nix/store/8q3d5kwf5bc3wcqzpc4xiki0afzvark7-universe-1.1-js-unknown-ghcjs
/nix/store/apxcvab8dzjvi4bqzs89k78bhirlyr8y-obelisk-frontend-0.1-js-unknown-ghcjs
/nix/store/c2bd9nr13qz19mcbn3axfhj7ljh3dfwp-dependent-map-0.4.0.0-js-unknown-ghcjs
/nix/store/dkv1ry2c9ghw9zs4fqjvhvd5w3277l6z-reflex-0.8.0.0-js-unknown-ghcjs
/nix/store/mkvwv7ia8mcmzy6wnrdy83s6yaiwcc0x-reflex-dom-0.6.1.0-js-unknown-ghcjs
/nix/store/mz8019j0gnw8zsp0q6nphm9ydlfclw4c-universe-dependent-sum-1.1.0.1-js-unknown-ghcjs
/nix/store/pji42nj0088dvn6i8kwpzr0kz2wx2y2a-dependent-sum-template-0.1.0.3-js-unknown-ghcjs
/nix/store/sr967bhlga5g5mb52xgn266z36gr1n4g-reflex-dom-core-0.6.1.0-js-unknown-ghcjs
don't know how to build these paths:
/nix/store/rfa8yp50l6x79zd2fmipjyaallg7p3bs-type-equality-1-js-unknown-ghcjs
building '/nix/store/dzwb7bm2q6lg2mhim4pzqf4gclv49kbs-type-equality-1-js-unknown-ghcjs.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/2y70b0p8cbrbz9nkj37liz1423vqkzn0-ghcjs-8.6.0.1.
unpacking sources
unpacking source archive /nix/store/zja8yc486kq6isjvlcrn5lwf5ijb3b0s-type-equality-1.tar.gz
source root is type-equality-1
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file type-equality-1/type-equality.cabal
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-type-equality-1-js-unknown-ghcjs.drv-0/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /private/tmp/nix-build-type-equality-1-js-unknown-ghcjs.drv-0/Main.o )
Linking Setup ...
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
builder for '/nix/store/dzwb7bm2q6lg2mhim4pzqf4gclv49kbs-type-equality-1-js-unknown-ghcjs.drv' failed with exit code 1
cannot build derivation '/nix/store/b1daxypd9ay6h7njwv61y32ql0j9qpnb-some-1.0.1-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/v0299zyh4971xi97g0p2p0vk9894qgrs-dependent-sum-0.7.1.0-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/fyssxw2jy18ixb13vkn9qv8k8anvm9fb-obelisk-frontend-0.1-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2rx3k9218fib469vzjkxa6xpvzq1q8gq-obelisk-route-0.2-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3dxjhcvhwyfw9bjg35vi2yy2ppmcv9dw-reflex-0.8.0.0-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bw1s04g4b1qvrd3wgmncs6axrs45n9c5-reflex-dom-0.6.1.0-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y31r1n218j4wmpy0awzh4myy18hx5l2y-reflex-dom-core-0.6.1.0-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2r6413483cgydyb1avs6lir7bvcwcr45-frontend-0.1-js-unknown-ghcjs.drv': 1 dependencies couldn't be built
error: build of '/nix/store/2r6413483cgydyb1avs6lir7bvcwcr45-frontend-0.1-js-unknown-ghcjs.drv' failed
and the nix version is:
nix (Nix) 2.3.10
I'm not familiar with this, it seems bad.