From 8a9809104fbb6b8c829b95852fdce87a1f5c183a Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 19 Mar 2024 16:39:53 +0000 Subject: [PATCH] Fix treefmt flake-parts integration --- flake-module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake-module.nix b/flake-module.nix index 4b336437..2fb18d07 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -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 ];