Building static executables with Nix
summary
A Nix overlay and a musl-based toolchain let static linking of most Haskell binaries; the project claims it builds ~97% of Haskell executables that users request and produces relocatable static ELFs you can drop anywhere (see https://github.com/NixOS/nixpkgs/issues/43795). The work layers onto nixpkgs as an overlay to expose static versions of common executables, automates switching compilers and C libraries, and aims to upstream the results so static builds are just a package option.
AI-written summary · about
