Commit 6c0e789
authored
chore(devshell): add rustfmt + clippy + libclang for parity with CI (#32)
The `nix develop` shell brings the build inputs of the `visage` package
via `inputsFrom`, but not the cargo subcommands CI gates on:
- `cargo fmt --all -- --check`
- `cargo clippy --workspace -- -D warnings`
`dtolnay/rust-toolchain@stable` bundles both in the CI workflow; the
devshell didn't, so a contributor running `nix develop && cargo fmt`
hit "error: no such command: `fmt`" — same for clippy.
Also exposes `llvmPackages.libclang` + `LIBCLANG_PATH`, since
`v4l2-sys-mit` runs `bindgen` at build time and fails with
"Unable to find libclang" otherwise. Surfaced when running
`cargo check -p visaged` locally.
Verified: `cargo fmt --all -- --check` and `cargo clippy --workspace`
now run inside `nix develop` without further env tweaking.
No effect on CI (CI doesn't use the devshell). No effect on packaged
outputs (this only touches `devShells.default`).1 parent daa9903 commit 6c0e789
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
0 commit comments