srid / haskell-flake

A `flake-parts` Nix module for Haskell development
https://community.flake.parts/haskell-flake
MIT License
140 stars 18 forks source link

Add a CI check to confirm that `nixpkgs-fmt` was run #115

Closed srid closed 1 year ago

srid commented 1 year ago

Either do it in a simple way or use the treefmt-nix flake-parts module (without bringing that flake input to users of haskell-flake).

roberth commented 1 year ago

The inputs concern would be an instance of

srid commented 1 year ago

I think we can just use https://github.com/cachix/pre-commit-hooks.nix - which gives us a flake check for free.

EDIT: But of course, this would still require solving the dev-only dependencies part.