add cargo to dev shell
All checks were successful
ci/woodpecker/pr/check_fmt Pipeline was successful
All checks were successful
ci/woodpecker/pr/check_fmt Pipeline was successful
This commit is contained in:
parent
3139bab32f
commit
b63607ff68
1 changed files with 54 additions and 43 deletions
15
flake.nix
15
flake.nix
|
@ -24,16 +24,19 @@
|
|||
packages = with pkgs; [
|
||||
corepack_latest
|
||||
nodejs
|
||||
cargo
|
||||
clippy
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
formatter = forSystems (
|
||||
packages = forSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = pkgs' system;
|
||||
in
|
||||
pkgs.treefmt.withConfig {
|
||||
{
|
||||
fmt = pkgs.treefmt.withConfig {
|
||||
runtimeInputs = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
nodePackages.prettier
|
||||
|
@ -75,7 +78,15 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
formatter = forSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = pkgs' system;
|
||||
in
|
||||
self.outputs.packages.${system}.fmt
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue