IssueRaiser

Fully static Haskell executables - overview issue

**If you just want to build static Haskell executables right now, follow [these instructions](https://github.com/nh2/static-haskell-nix).** This issue collects/links all issues and ongoing work to make fully-static building of Haskell executables an excellently-working feature in nixpkgs. I will update here regularly the progress we are making, and sub-goals we encounter on the way that need to be fulfilled to tick off the parent goal. Obviously contributions to this list are welcome. * [ ] **Fully static builds of Haskell exes should be trivial** (end goal) * [ ] Document in the nixpkgs manual how to make fully static Haskell builds * [x] Building `stack` based projects with their own `resolver` should be really easy * Done since https://github.com/NixOS/nixpkgs/issues/43795#issuecomment-495035217 * [x] A minimal `stack` based example should be added ([here](https://github.com/nh2/static-haskell-nix/tree/b06f8979bfaa27dc4ce76cbeaa393e0c28b5baef/static-stack2nix-builder-example)) * [x] ~All~ Most Haskell executables in nixpkgs succeed to build statically * This is being worked on in the `survey` directory of https://github.com/nh2/static-haskell-nix * [x] Build as many static Haskell executables from nixpkgs as possible * [x] Build [nix expression that can find and build all Haskell executables in ~nixpkgs~ Stackage](https://github.com/nh2/static-haskell-nix/blob/09d0eaa605111ea516dfaa0e7341a71ff1a63042/survey/default.nix#L257-L259) * [

Posted by nh2 on Jul 19, 2018, 1:29 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments

github (Software)

Fully static Haskell executables - overview issue

nh2Jul 19, 2018, 1:29 AM

**If you just want to build static Haskell executables right now, follow [these instructions](https://github.com/nh2/static-haskell-nix).** This issue collects/links all issues and ongoing work to make fully-static building of Haskell executables an excellently-working feature in nixpkgs. I will update here regularly the progress we are making, and sub-goals we encounter on the way that need to be fulfilled to tick off the parent goal. Obviously contributions to this list are welcome. * [ ] **Fully static builds of Haskell exes should be trivial** (end goal) * [ ] Document in the nixpkgs manual how to make fully static Haskell builds * [x] Building `stack` based projects with their own `resolver` should be really easy * Done since https://github.com/NixOS/nixpkgs/issues/43795#issuecomment-495035217 * [x] A minimal `stack` based example should be added ([here](https://github.com/nh2/static-haskell-nix/tree/b06f8979bfaa27dc4ce76cbeaa393e0c28b5baef/static-stack2nix-builder-example)) * [x] ~All~ Most Haskell executables in nixpkgs succeed to build statically * This is being worked on in the `survey` directory of https://github.com/nh2/static-haskell-nix * [x] Build as many static Haskell executables from nixpkgs as possible * [x] Build [nix expression that can find and build all Haskell executables in ~nixpkgs~ Stackage](https://github.com/nh2/static-haskell-nix/blob/09d0eaa605111ea516dfaa0e7341a71ff1a63042/survey/default.nix#L257-L259) * [

Comments (0)

No comments yet. Start the discussion.

Comment on this issue