Skip to content

Commit

Permalink
Merge pull request #412 from cachix/fix-treefmt-integration
Browse files Browse the repository at this point in the history
Fix treefmt flake-parts integration
  • Loading branch information
domenkozar authored Mar 20, 2024
2 parents ecef0bb + cbb3524 commit 5e4c5ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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
1 change: 0 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ let
../modules/all-modules.nix
{
inherit tools;
hooks.treefmt.package = pkgs.treefmt;
}
];
specialArgs = { inherit pkgs; };
Expand Down

0 comments on commit 5e4c5ea

Please sign in to comment.