Skip to content

Commit

Permalink
Make 'nix fmt' work (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sridhar Ratnakumar authored Aug 23, 2022
1 parent ef2e375 commit 0341220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0341220

Please sign in to comment.