shell.nix: use the right dev shell

This commit is contained in:
zimbatm 2022-05-18 20:18:10 +02:00
parent 25f1ed63f4
commit 0b8e57c5e6
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
{ system ? builtins.currentSystem }: { system ? builtins.currentSystem }:
(import ./. { inherit system; }).treefmt (import ./. { inherit system; }).devShell

View File

@ -53,7 +53,7 @@ pub struct Cli {
/// Run as if treefmt was started in <work-dir> instead of the current working directory. /// Run as if treefmt was started in <work-dir> instead of the current working directory.
pub work_dir: PathBuf, pub work_dir: PathBuf,
#[structopt(long = "tree-root")] #[structopt(long = "tree-root", env = "PRJ_ROOT")]
/// Set the path to the tree root directory. Defaults to the folder holding the treefmt.toml file. /// Set the path to the tree root directory. Defaults to the folder holding the treefmt.toml file.
pub tree_root: Option<PathBuf>, pub tree_root: Option<PathBuf>,