{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; outputs = { self, nixpkgs, ... }: let supportedSystems = nixpkgs.lib.systems.flakeExposed; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; overlays = [ self.overlays.default ]; }); in { overlays.default = final: prev: { mkups = final.callPackage ./mkups.nix { }; }; packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { default = pkgs.mkups; }); devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { default = pkgs.mkShell { inputsFrom = [ pkgs.mkups ]; packages = [ pkgs.clippy ]; }; }); }; }