nixnew/modules/devenv/rust.nix

29 lines
556 B
Nix
Raw Normal View History

2023-06-23 07:43:29 +00:00
outerInputs @ { inputs, ... }: let
pkgs = outerInputs.pkgs.appendOverlays [ (import inputs.rust-overlay) ];
in pkgs.mkShell {
name = "rust-devenv";
packages = with pkgs; [
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
extensions = [
"rustc"
"rust-src"
"rust-docs"
"rust-std"
"cargo"
"clippy"
"rust-analyzer"
"miri"
];
}))
cargo-expand
# common deps
clang
pkg-config
openssl.dev
];
shellHook = "exec $SHELL";
}