flake: add rust devshell
This commit is contained in:
parent
39326b7975
commit
489dcfacd7
|
@ -82,6 +82,11 @@
|
|||
];
|
||||
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";
|
||||
};
|
||||
devShells.rust = with pkgs;
|
||||
mkShell {
|
||||
nativeBuildInputs = [ rustc cargo rustfmt clippy ];
|
||||
RUST_SRC_PATH = "${rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
};
|
||||
devShells.avr = with pkgs;
|
||||
pkgsCross.avr.mkShell {
|
||||
packages = [ avrdude gnumake ];
|
||||
|
|
1
rust/.envrc
Normal file
1
rust/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake ..#rust
|
Loading…
Reference in a new issue