{ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; inputs.systems.url = "github:nix-systems/default-linux"; outputs = { self, nixpkgs, systems, }: let forAllSystems = func: nixpkgs.lib.genAttrs (import systems) (system: func (import nixpkgs { inherit system; })); in { devShells = forAllSystems (pkgs: { default = pkgs.mkShell { packages = with pkgs; [ cargo rustc rust-analyzer rustfmt clippy ]; }; }); }; }