treefmt need not be in shell PATH
This commit is contained in:
parent
ec7db3ca04
commit
fb9634b22b
2 changed files with 5 additions and 10 deletions
|
@ -21,7 +21,7 @@ For details, see: https://srid.ca/haskell-template/start
|
|||
|
||||
- Run `nix flake update` to update all flake inputs.
|
||||
- Run `nix --option sandbox false build .#check -L` to run the flake checks.
|
||||
- Run `treefmt` in nix shell to autoformat the project. This uses [treefmt](https://github.com/numtide/treefmt), which uses `./treefmt.toml` (where fourmolu and nixpkgs-fmt are specified).
|
||||
- Run `, fmt` in nix shell to autoformat the project. This uses [treefmt](https://github.com/numtide/treefmt), which uses `./treefmt.toml` (where fourmolu and nixpkgs-fmt are specified).
|
||||
- Run `, docs` to start Hoogle with packages in your cabal file.
|
||||
- Run the application without installing: `nix run github:srid/haskell-template` (or `nix run .` from checkout)
|
||||
- Common workflows
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -22,10 +22,7 @@
|
|||
packages = {
|
||||
haskell-template.root = ./.;
|
||||
};
|
||||
buildTools = hp: {
|
||||
inherit (pkgs)
|
||||
treefmt;
|
||||
} // config.treefmt.formatters;
|
||||
buildTools = hp: { } // config.treefmt.formatters;
|
||||
# overrides = self: super: {}
|
||||
hlsCheck.enable = true;
|
||||
hlintCheck.enable = true;
|
||||
|
@ -54,9 +51,9 @@
|
|||
category = "Dev Tools";
|
||||
};
|
||||
fmt = {
|
||||
description = "Auto-format the source tree";
|
||||
command = "treefmt";
|
||||
category = "Dev Tools";
|
||||
description = "Format the source tree";
|
||||
command = "${lib.getExe pkgs.treefmt}";
|
||||
category = "Dev Tools ";
|
||||
};
|
||||
run = {
|
||||
description = "Run the project with ghcid auto-recompile";
|
||||
|
@ -72,5 +69,3 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue