Add devenv registry

This commit is contained in:
outfoxxed 2023-06-23 00:43:29 -07:00
parent ade4371c44
commit e96641729d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 145 additions and 0 deletions

28
modules/devenv/rust.nix Normal file
View 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";
}