reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.

Home Page:https://reflex-frp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ghcjs-dom-jsffi breaks android builds

danwdart opened this issue · comments

Using -A android.ui in my case, I get:

installing
Setup: No executables and no library found. Nothing to do.

error: builder for '/nix/store/qsd5108lzc08hmbbbwdag86ck10sh861-ghcjs-dom-jsffi-0.9.4.0.drv' failed with exit code 1;
       last 10 log lines:
       > Building ghcjs-dom-jsffi-0.9.4.0...
       > running tests
       > Package has no test suites.
       > haddockPhase
       > Warning: No documentation was generated as this package does not contain a
       > library. Perhaps you want to use the --executables, --tests, --benchmarks or
       > --foreign-libraries flags.
       > installing
       > Setup: No executables and no library found. Nothing to do.
       >
       For full logs, run 'nix log /nix/store/qsd5108lzc08hmbbbwdag86ck10sh861-ghcjs-dom-jsffi-0.9.4.0.drv'.
error: 1 dependencies of derivation '/nix/store/wmiz1va13j90ww1p7ag7z759f273blw6-ghcjs-dom-jsffi-0.9.4.0-aarch64-unknown-linux-android.drv' failed to build
error: 1 dependencies of derivation '/nix/store/57i37yymjyll2i8y2yihsv56z5w1z2k8-ghcjs-dom-jsffi-0.9.4.0-armv7a-unknown-linux-androideabi.drv' failed to build
copying path '/nix/store/wxp5lzzz01h0l3baf0lsn1ld2l6yhj91-polkit-0.118' from 'https://nixcache.reflex-frp.org'...
error: 1 dependencies of derivation '/nix/store/qh2505lqc3afj9x0wjjnv004x7dfg5dk-jolharg-reflex-0.1.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qcmrg9ai501g08hy82ngcy95ngpsjy9q-ui-0.1.0.0-aarch64-unknown-linux-android.drv' failed to build
error: 1 dependencies of derivation '/nix/store/is5i3wfp9q91q73abxk6xb4lamq9y77m-android-app.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vq9s1s3hzhb8qq4453rx2mqjlfmgscr7-com.jolharg.jobfinder.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8kfdqv8vbdpb1ycn28kwj7zv0g4lfwl7-android-app.drv' failed to build

Unsure about that one - any ideas?

Thanks

You should try using ghcjs-dom instead of ghcjs-dom-jsffi directly. See the note in the ghcjs-dom readme:

Applications should use the ghcjs-dom package and the GHCJS.DOM.* modules it contains to get the best mix of portability and performance (rather than using the jsaddle-dom, ghcjs-dom-jsaddle and ghcjs-dom-jsffi directly).

Ah, it was indeed one of mine. Fair enough.