refactor: move rust dev shell into 'rust' directory

This commit is contained in:
2025-12-09 13:36:36 +01:00
parent 6801bd0e9a
commit 08e054c95c
7 changed files with 1 additions and 0 deletions

32
rust/flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem =
{ pkgs, ... }:
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
clippy
evcxr
rust-analyzer
rustc
rustfmt
];
};
};
};
}