haskell / haskell/entropy

entropy throws and error during build on GHC-9.x for the JS backend in nixpkgs.

Open
#87 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
27
Forks
53
PR merge metrics
No merged PRs in 30d

Description

See this ticket: https://github.com/NixOS/nixpkgs/issues/337996

for the whole story.

Essentially what is happening is the `Setup.hs` file uses inline assembly to call `rdrand` which is not supported for JS because emscripten does not support it.

So the fix is to either write that assembly in portable C/C++ or write some javascript that does the same thing and use and `ifdef` to catch when `entropy` is being cross-compiled.

I'm more than happy to write the js if you need it, but I wanted to defer to the author of the library to make the decision on how best to proceed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.