- Extracted checks (clippy, doc, fmt, and toml-fmt) into modularized Nix files under `nix/checks`. - Updated `flake.nix` to import checks from the new modularized structure. - Improved clarity and maintainability by separating concerns for each check.
31 lines
494 B
Nix
31 lines
494 B
Nix
{
|
|
craneLib,
|
|
src,
|
|
commonArgs,
|
|
cargoArtifacts,
|
|
vault-hier,
|
|
pkgs,
|
|
}:
|
|
|
|
{
|
|
inherit vault-hier;
|
|
|
|
my-workspace-clippy = import ./clippy.nix {
|
|
inherit craneLib commonArgs cargoArtifacts;
|
|
};
|
|
|
|
my-workspace-doc = import ./doc.nix {
|
|
inherit craneLib commonArgs cargoArtifacts;
|
|
};
|
|
|
|
# Check formatting
|
|
my-workspace-fmt = import ./fmt.nix {
|
|
inherit craneLib src;
|
|
};
|
|
|
|
my-workspace-toml-fmt = import ./toml-fmt.nix {
|
|
inherit craneLib src;
|
|
lib = pkgs.lib;
|
|
};
|
|
}
|