microscope-control/hostcontrol/shell.nix
Henner Zeller a6077d755e Add simple camera-capture with nokhwa.
There might be better camera capture crates, this
is just the first pick for now.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
2026-03-08 20:36:44 +01:00

25 lines
474 B
Nix

{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
buildInputs = with pkgs; [
cargo
# Needed for a bindgen dependency in nokhwa
rustPlatform.bindgenHook
# Useful tools
clippy
rustfmt
rust-analyzer
# minimal git
git
less
cacert # For cargo downloads and git to verify certs
];
LD_LIBRARY_PATH = with pkgs; [
# TODO: needed ?
"${xorg.libX11}/lib;${xorg.libXcursor}/lib;${xorg.libXi}/lib;${libxkbcommon}/lib"
];
}