Open chshersh opened 4 years ago
I've run out of space locally when trying to produce a statically linked executable. My work can be found in this branch:
But in theory, it should work.
An alternative could be to use Docker and the ghc-musl
repository:
As a nice bonus point, the repo contains instructions for both cabal
and stack
and also supports GHC-8.8, so in theory it should be pretty straightforward to use it.
Okay, Docker works smoothly and without any problems :+1: Looks like it's the way to go. Once we create a release, I will build a statically linked executable and upload it to releases. The only problem now is that the result of the --version
command is not nice:
Hit v0.2.0.0
➤ Git revision: UNKNOWN
➤ Commit date: UNKNOWN
I believe that this is because the .git
folder is not copied. But I hope there's a flag to copy some additional folders, shouldn't be a big problem.
That is fantastic news! Thanks for working on this. The next release is going to be :fire:
Using
static-haskell-nix
most likely.