nix-conf/dev-templates/rust-minimal/flake.nix
2026-01-10 21:54:04 -03:00

23 lines
445 B
Nix

{
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
];
};
};
}