Add Nix flake with haskell.nix + iohk-nix build - #1
Open
Jimbo4350 wants to merge 3 commits into
Open
Conversation
Adds flake.nix following the same pattern as cardano-api: - haskell.nix evaluates the cabal build plan - iohk-nix overlays provide libsodium-vrf, libblst, libsecp256k1 - iohkNix.overlays.haskell-nix-crypto wires them into haskell.nix so cardano-crypto-praos links against the real IOHK libsodium-vrf fork - Dev shell includes cabal, ghcid, fourmolu 0.18, hlint, sqlite, gh - Pre-commit hooks enforce fourmolu and hlint - nixConfig points at cache.iog.io for pre-built artefacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List of changes
flake.nixfollowing the same pattern ascardano-apiandcardano-clihaskell.nixevaluates the cabal build plan into Nix derivationsiohkNix.overlays.cryptoprovideslibsodium-vrf,libblst,libsecp256k1iohkNix.overlays.haskell-nix-cryptowires those libs into haskell.nix socardano-crypto-praoslinks against the real IOHK libsodium-vrf fork (no bundled fallback needed in Nix)cabal,ghcid,fourmolu 0.18,hlint,sqlite,ghfourmoluandhlintnixConfigpoints atcache.iog.iofor pre-built artefactscardano-apifor maximum binary cache overlap