{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; fenix = { url = "github:nix-community/fenix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, fenix, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; rust = fenix.packages."${system}"; in { devShell = pkgs.mkShell { buildInputs = with pkgs; [ (rust.complete.withComponents [ "cargo" "clippy" "rustc" "rustfmt" "rust-src" "miri" "rust-analyzer" ]) cargo-readme gnused ]; }; } ); }