nixos-config/shells/rust.nix
Gabriel Arazas bc2e4ccf64 shells: add dependencies
Most of the things added will be inputs from larger dependencies.
2022-11-10 22:08:22 +08:00

30 lines
529 B
Nix

# This is just for a quick development setup. Otherwise, I recommend
# to use the `rust` template from `nixpkgs` or whatever you prefer.
{ mkShell
, openssl
, pkg-config
, cargo
, rustc
, rustfmt
, rust-analyzer
, rustPackages
, rustPlatform
}:
mkShell {
buildInputs = [
openssl # In case some package needs it.
pkg-config # In case some other package needs it.
# Rust platform.
cargo
rustc
rustfmt
rust-analyzer
];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
inputsFrom = [ cargo rustc ];
}