Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Compilation #6

Closed
CMCDragonkai opened this issue Sep 1, 2018 · 4 comments
Closed

Static Compilation #6

CMCDragonkai opened this issue Sep 1, 2018 · 4 comments
Assignees

Comments

@CMCDragonkai
Copy link
Member

CMCDragonkai commented Sep 1, 2018

To create a static compilation, we should have a release.nix to produce such derivations. This needs to be added later.

@CMCDragonkai
Copy link
Member Author

For haskell-only dependencies this was achieved with: ec7beb4

But for completely static executables, more things are needed including replacing glibc with musl.

@CMCDragonkai
Copy link
Member Author

@nzhang-zh

@CMCDragonkai
Copy link
Member Author

It turns out this is really important if we want to have smaller binaries, or not have to keep around all of the dependent haskell libraries. It really reduces the size of haskell applications down significantly. I'd think it almost should be done by default for any haskell apps even in the nixpkgs package set @rbellec @Zachaccino @DrFacepalm

@CMCDragonkai
Copy link
Member Author

Not that important right now. It seems like static Haskell requires a change in the Nix tooling and the first thing to figure out would be cross-compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants