luc-tielen / llvm-codegen

LLVM code generation in Haskell
BSD 3-Clause "New" or "Revised" License
50 stars 6 forks source link

Fix Nix for Darwin #8

Open danieljharvey opened 1 year ago

danieljharvey commented 1 year ago

This fixes Nix builds for Darwin (both x86_64-darwin and aarch64-darwin). Have tested on both.

Unfortunately it requires patching GHC the same way haskell.nix does to stop a linking error, so it might be worth creating a shared cachix for the library so not every user has to build GHC with Nix.