From 0341220a2a7a6c99317505cb820009bd34c438b1 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:32:57 -0400 Subject: [PATCH] Make 'nix fmt' work (#178) --- default.nix | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index fc46f6e0..22662a62 100644 --- a/default.nix +++ b/default.nix @@ -153,7 +153,7 @@ let let mod = evalModule config; in - mod.build.wrapper; + mod.config.build.wrapper; }; # Add all the dependencies of treefmt, plus more build tools diff --git a/flake.nix b/flake.nix index 26fdcbc7..d7a81826 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ # It also assumes that the project root has a flake.nix (override this by setting `projectRootFile`). formatter = pkgs.treefmt.withConfig { settings = nixpkgs.lib.importTOML ./treefmt.toml; - projectRootFile = "flake.nix"; + wrapper.projectRootFile = "flake.nix"; }; devShell = pkgs.devShell;