How-To build a fully statically-linked Haskell executable with Nix

I put together an example repo showing how to build fully statically-linked x86-64 Linux Haskell binaries using Nix:

The README explains how to use the repo, as well as giving an overview of the code. The code is heavily documented, so hopefully this will be helpful even to people who aren’t too familiar with Nix.

8 Likes