Skip to content

Commit

Permalink
Fix treefmt flake-parts integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Mar 19, 2024
1 parent e8dc1b4 commit 8a98091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ in
rootSrc = self.outPath;
package = lib.mkDefault pkgs.pre-commit;
tools = import ./nix/call-tools.nix pkgs;
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);
};
pre-commit.devShell = pkgs.mkShell {
nativeBuildInputs = [ cfg.settings.package ];
Expand Down

0 comments on commit 8a98091

Please sign in to comment.