static-haskell-nix
static-haskell-nix copied to clipboard
easily build most Haskell programs into fully static Linux executables
I've tried to update pinned nixpkgs by rebasing @nh2 's commits to the latest master branch (as of 2023-09-16). https://github.com/teggotic/nixpkgs/tree/static-haskell
What I did: clone the repo, cd into static-stack2nix-builder-example, run `nix-build`
At Zurihac @nh2 graciously explained how the `survey/default.nix` worked. Hopefully some of the notes I made will be useful to others!
This was due to `staticHaskellBinariesOverlay` overlay changing every _existing_ package to build statically, but not every _new_ package called with `callPackage`. Here's an example building against my own [`glualint`](https://github.com/FPtje/GLuaFixer): ###...