We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecef0bb + cbb3524 commit 5e4c5eaCopy full SHA for 5e4c5ea
flake-module.nix
@@ -68,7 +68,7 @@ in
68
rootSrc = self.outPath;
69
package = lib.mkDefault pkgs.pre-commit;
70
tools = import ./nix/call-tools.nix pkgs;
71
- settings.treefmt.package = lib.mkIf (options?treefmt) (lib.mkDefault config.treefmt.build.wrapper);
+ hooks.treefmt.package = lib.mkIf (options?treefmt) (lib.mkOverride 900 config.treefmt.build.wrapper);
72
};
73
pre-commit.devShell = pkgs.mkShell {
74
nativeBuildInputs = [ cfg.settings.package ];
nix/default.nix
@@ -32,7 +32,6 @@ let
32
../modules/all-modules.nix
33
{
34
inherit tools;
35
- hooks.treefmt.package = pkgs.treefmt;
36
}
37
];
38
specialArgs = { inherit pkgs; };
0 commit comments