Skip to content

Conversation

@abhin4v
Copy link
Contributor

@abhin4v abhin4v commented May 3, 2025

This PR adds support for easily building statically-linked executable using Nixkell and Nix. Majorly, it:

  • adds an overlays-static.nix file that configures GHC and Haskell packages for building statically-linked executable,
  • changes package.nix to configure Nix build to use right Cabal/GHC flags, and use right dependency libraries for static builds, and
  • add a build-static command in scripts.nix to easily trigger a static build, and to create Nix GC roots for static dependencies and build tools.

Copy link
Owner

@pwm pwm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@pwm pwm merged commit 26aee26 into pwm:master Jun 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants