mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
build(nix): a hygiene dev shell with the pinned tools of the first CI stage
devShells.hygiene is the toolchain with the nightly rustfmt, cargo-deny, shellcheck, actionlint, jq, ripgrep and git, without the Windows SDK, the VM tooling and the rest of the full shell, so that the first stage sets up in seconds and a local `nix develop .#hygiene` runs what CI runs.
This commit is contained in:
1 parent
15c8a04459
commit
194fbd4281
1 file changed
+16
@@ -212,6 +212,22 @@ in
|
||||
name = "komorebi-native";
|
||||
cross = false;
|
||||
};
|
||||
# What the first stage of CI runs (.github/workflows/ci.yaml: hygiene, fmt, deny) and nothing more:
|
||||
# the versions the flake pins, without the Windows SDK, the VM tooling and the rest of the full shell,
|
||||
# so that the checks of that stage take seconds to set up and a local `nix develop .#hygiene` runs
|
||||
# the same tools as CI does.
|
||||
hygiene = pkgs.mkShell {
|
||||
name = "komorebi-hygiene";
|
||||
packages = [
|
||||
rustToolchainWithNightlyRustfmt
|
||||
pkgs.actionlint
|
||||
pkgs.cargo-deny
|
||||
pkgs.git
|
||||
pkgs.jq
|
||||
pkgs.ripgrep
|
||||
pkgs.shellcheck
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# the two checks of these modules are members of the set `fmt` (nix/checks.nix), which adds them
|
||||
|
||||
Reference in new issue
Block a user