Unisay / purescript-lua

Purescript compiler back-end for Lua
GNU General Public License v3.0
56 stars 2 forks source link

MacOS build #14

Closed atortsev closed 1 year ago

atortsev commented 1 year ago

Any plans for MacOS build? Especially for M1 lineage. Really want to use this with defold game engine.

Unisay commented 1 year ago

The reason I didn't enable the MacOS build in the nix configuration is simply that I don't have a mac to try building it on. I suggest you to try building pslua executable outside of the nix context; You'd need to have cabal/ghc installed in your system and available on $PATH. A good conventional way to do it is GHCUp. It might simply work then. Here is the similar solution but for windows build: https://github.com/Unisay/purescript-lua/issues/13#issuecomment-1722525359

Unisay commented 1 year ago

If you decide to go this route and encounter problems please let me know, I'll try to help.

atortsev commented 1 year ago

I'll try. Thank you!

unorsk commented 1 year ago

Any plans for MacOS build? Especially for M1 lineage. Really want to use this with defold game engine.

It's actually easy to get pslua compiled locally :) I've just ran cabal install exe:pslua using ghc-9.4.7 and it worked like a charm!

atortsev commented 1 year ago

Yeah, it's worked! Thank you!