Repository navigation
Add nix packaging support using haskell.nix - #483
Conversation
Does not work, attempting other workarounds. This reverts commit 45a8601.
|
Thanks for the contribution! Would be great if this could be tested by a GitHub workflow (CI), so that it does not bit-rot. |
|
Workflow is added, should be working now for both os x and linux builds using nix. A few notes:
|
|
Excellent, I'll merge this now! I cannot promise to maintain this, unfortunately, as I lack the |
|
@chaserhkj : The nix workflow needs update to the lastest GHCs (it has now been broken for 9 months). https://github.com/BNFC/bnfc/actions/runs/11597112476 |
I'll take a look this week and open another PR. |
This PR adds nix packaging for BNFC using haskell.nix, allowing it to be integrated directly with the nix ecosystem, producing more reproducible builds as well.
Note that this does not invalidate the current stack-based build system, this is just additional nix build scripts that can be used by nix systems, quite like the
Dockerfilewe are already providing. This does not create multiple sources of truth for building as well since haskell.nix reads stack yaml configurations and generate build instructions on the fly.