logoalt Hacker News

internet_pointstoday at 8:17 AM1 replyview on HN

Cross compilation could definitely be easier :-/ I tend to just use github actions and compile from whatever architecture it should run on, so that's a workaround. I long for a day when I can just `cabal build --platform=amd64` etc. and it Just Works without having to download and compile a horde of foreign libs or set up a vm


Replies

instig007today at 9:03 AM

> cabal build --platform=amd64

It's almost a one-liner + a nix derivation import, works within a minute on incremental builds even on large projects: https://input-output-hk.github.io/haskell.nix/tutorials/cros...

show 1 reply