feat: added template for Rust flakes

This commit is contained in:
Thiago Sposito 2025-11-14 12:12:46 -03:00
parent 0c89e3f89e
commit 13f66d2dbf
Signed by: thiago
GPG key ID: 3065EA73A976D430

View file

@ -0,0 +1,23 @@
{
description = "A minimal Rust development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
clippy
rust-analyzer
];
};
};
}