haskell-flake makes writing Nix for Haskell projects simpler.
The 0.4.0 release mainly includes an easier way to override dependency packages.
settings = {
ema = { # This module can take `{self, super, ...}` args, optionally.
check = false; # Disable running tests
haddock = false; # Disable building haddock documentation
jailbreak = true; # Ignore cabal constraints
patches = [ ./patches/ema-bug-fix.patch ];
cabalFlags.with-generics = true;
};
};
See Overriding dependencies | Zero to Flakes
Examples,