feat (shells): rust

This commit is contained in:
Henri Saudubray 2026-01-11 14:32:14 +01:00
parent c4bd63b229
commit f9c67e9d15
2 changed files with 51 additions and 0 deletions

24
shells/rust/flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
description = "Rust nix-flake devshell.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ self, nixpkgs, ... }:
let
system = "x86_64-linux";
in
{
devShells."${system}".default =
let
pkgs = import nixpkgs { inherit system; };
in
pkgs.mkShell {
packages = with pkgs; [
cargo
rust-analyzer
];
};
};
}