mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
Include cargo, nixfmt, rustc, and rustfmt in devShell
This commit is contained in:
parent
8c47d6d9ba
commit
84b2a2c3bb
@ -61,6 +61,7 @@
|
|||||||
|
|
||||||
pre-commit = pre-commit-hooks.lib."${system}".run;
|
pre-commit = pre-commit-hooks.lib."${system}".run;
|
||||||
in {
|
in {
|
||||||
|
# `nix flake check`
|
||||||
checks = {
|
checks = {
|
||||||
# Build the crate as part of `nix flake check` for convenience
|
# Build the crate as part of `nix flake check` for convenience
|
||||||
inherit rga;
|
inherit rga;
|
||||||
@ -91,8 +92,7 @@
|
|||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit pre-commit;
|
pre-commit = pre-commit {
|
||||||
pre-commit-check = pre-commit {
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
hooks = {
|
hooks = {
|
||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
@ -115,9 +115,10 @@
|
|||||||
|
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||||
inputsFrom = builtins.attrValues self.checks;
|
inputsFrom = builtins.attrValues self.checks;
|
||||||
buildInputs = buildInputs;
|
buildInputs = buildInputs
|
||||||
|
++ (with pkgs; [ cargo nixfmt rustc rustfmt ]);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user