flake: add rust devshell

This commit is contained in:
Artemis Tosini 2024-07-07 21:12:37 +00:00
parent 39326b7975
commit 489dcfacd7
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 6 additions and 0 deletions

View file

@ -82,6 +82,11 @@
]; ];
RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library"; 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; devShells.avr = with pkgs;
pkgsCross.avr.mkShell { pkgsCross.avr.mkShell {
packages = [ avrdude gnumake ]; packages = [ avrdude gnumake ];

1
rust/.envrc Normal file
View file

@ -0,0 +1 @@
use flake ..#rust