json2nix: use nixfmt internally

This helps with creating better error messages,
because we can now see where in the pipeline
the error occurred
This commit is contained in:
2022-11-26 20:50:22 +01:00
parent eab555988e
commit fa2f0fd6b4
4 changed files with 52 additions and 31 deletions

View File

@@ -0,0 +1,10 @@
{ pkgs, compiler, ... }:
final: prev: {
haskellPackages = with prev.haskell.lib;
prev.haskell.packages.${compiler}.override {
overrides = hpFinal: hpPrev: {
# Upgrade nixfmts "text" dependency to >= 2
nixfmt = doJailbreak hpPrev.nixfmt;
};
};
}