forked from fafo/microscope-control
There might be better camera capture crates, this is just the first pick for now. Signed-off-by: Henner Zeller <h.zeller@acm.org>
25 lines
474 B
Nix
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"
|
|
];
|
|
}
|