{ inputs = { nixpkgs.url = "nixpkgs"; fenix = { url = "github:nix-community/fenix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs @ { self, nixpkgs, fenix }: let eachSystem = nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ]; in { devShells = eachSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; fenixPkgs = fenix.packages.${system}; toolchain = fenixPkgs.fromToolchainFile { file = ./rust-toolchain.toml; sha256 = "sha256-R0F0Risbr74xg9mEYydyebx/z0Wu6HI0/KWwrV30vZo="; }; in { default = pkgs.mkShell { packages = [ toolchain fenixPkgs.rust-analyzer ]; }; }); }; }