nh2 / nh2/static-haskell-nix

Producing FFI static binaries

Open
#97 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Nix
Stars
401
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Hi, thanks for your work on this!

I have a question regarding to the production of FFI binaries on Haskell using nix. Right now I'm trying to compile this project, https://github.com/treble-ai/duckling-ffi, which intends to produce a C-compliant static library. Until now, Nix is able to build the library and produces a static binary `libHSduckling-ffi-0.1.0.0-28aDIsnrQtXFlJL0Bi0HJ4.a`. However, when I inspect that binary using `nm`, I find that several Haskell runtime symbols are undefined, such as `base_GHCziForeign_zdwpeekCString_closure`, or `rts_getPtr`, which prevent the output library to be useful. Is there any way to produce a full, static binary using static-haskell-nix? Sorry for my lack of background, as I don't have any previous haskell/nix experience.

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.