Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,21 @@
devShells.default = pkgs.mkShell {
inputsFrom = [ visage ];
packages = with pkgs; [
# Toolchain extras that match the CI gates
# (`cargo fmt --check`, `cargo clippy -- -D warnings`).
# `inputsFrom = [ visage ]` brings the compiler but not these.
rustfmt
clippy
# `bindgen` (transitively via `v4l2-sys-mit`) needs libclang.so
# at build time; without LIBCLANG_PATH set, `cargo build -p
# visaged` in the devshell fails with "Unable to find libclang".
llvmPackages.libclang
rust-analyzer
cargo-deb
cargo-watch
];
# Tell bindgen where to find libclang at build time.
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};
}
) // {
Expand Down