Skip to content

Commit 5e4c5ea

Browse files
authored
Merge pull request #412 from cachix/fix-treefmt-integration
Fix treefmt flake-parts integration
2 parents ecef0bb + cbb3524 commit 5e4c5ea

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

flake-module.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ in
6868
rootSrc = self.outPath;
6969
package = lib.mkDefault pkgs.pre-commit;
7070
tools = import ./nix/call-tools.nix pkgs;
71-
settings.treefmt.package = lib.mkIf (options?treefmt) (lib.mkDefault config.treefmt.build.wrapper);
71+
hooks.treefmt.package = lib.mkIf (options?treefmt) (lib.mkOverride 900 config.treefmt.build.wrapper);
7272
};
7373
pre-commit.devShell = pkgs.mkShell {
7474
nativeBuildInputs = [ cfg.settings.package ];

nix/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ let
3232
../modules/all-modules.nix
3333
{
3434
inherit tools;
35-
hooks.treefmt.package = pkgs.treefmt;
3635
}
3736
];
3837
specialArgs = { inherit pkgs; };

0 commit comments

Comments
 (0)