29 lines
556 B
Nix
29 lines
556 B
Nix
|
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";
|
||
|
}
|