`haskell-flake` 0.4.0 released - with easy overrides

haskell-flake is a flake-parts module that 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 https://zero-to-flakes.com/haskell-flake/dependency/

Examples,

2 Likes