{ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; outputs = { nixpkgs, ... }: let forAllSystems = function: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( system: function nixpkgs.legacyPackages.${system} ); in { formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); devShells = forAllSystems (pkgs: { default = pkgs.callPackage ./nix/shell.nix { }; }); packages = forAllSystems (pkgs: { default = pkgs.callPackage ./nix/default.nix { }; }); }; }