Add devenv registry
This commit is contained in:
parent
ade4371c44
commit
e96641729d
5 changed files with 145 additions and 0 deletions
28
modules/devenv/rust.nix
Normal file
28
modules/devenv/rust.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue