{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { nixpkgs, ... }: let supportedSystems = [ "x86_64-darwin" "aarch64-darwin" # When using llvm-install-name-tool, Linux should work too "x86_64-linux" "aarch64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; in { packages = forAllSystems (system: { default = import ./default.nix { pkgs = nixpkgs.legacyPackages.${system}; }; }); devShells = forAllSystems (system: { default = import ./shell.nix { pkgs = nixpkgs.legacyPackages.${system}; }; }); }; }