Skip to content

Add Nix flake with haskell.nix + iohk-nix build - #1

Open
Jimbo4350 wants to merge 3 commits into
masterfrom
feat/nix-flake
Open

Add Nix flake with haskell.nix + iohk-nix build#1
Jimbo4350 wants to merge 3 commits into
masterfrom
feat/nix-flake

Conversation

@Jimbo4350

Copy link
Copy Markdown
Contributor

List of changes

  • Add flake.nix following the same pattern as cardano-api and cardano-cli
  • haskell.nix evaluates the cabal build plan into Nix derivations
  • iohkNix.overlays.crypto provides libsodium-vrf, libblst, libsecp256k1
  • iohkNix.overlays.haskell-nix-crypto wires those libs into haskell.nix so cardano-crypto-praos links against the real IOHK libsodium-vrf fork (no bundled fallback needed in Nix)
  • Dev shell: 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
  • nixpkgs pinned to the same commit as cardano-api for maximum binary cache overlap

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
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.

1 participant