{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; }; outputs = { nixpkgs, ... }: let # Taken from lib.systems.doubles.all systems = [ "x86_64-linux" "aarch64-linux" ]; inherit (nixpkgs) lib; forAllSystems = config: lib.foldl lib.recursiveUpdate {} (builtins.map (system: builtins.mapAttrs (_: value: { ${system} = value; }) (config (import nixpkgs { inherit system; }))) systems); in forAllSystems (pkgs: { devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ cargo rust-analyzer ]; shellHook = '' SHELL="${pkgs.bash}/bin/bash" ''; }; }); }