{ inputs = { nixpkgs.url = "nixpkgs"; }; outputs = { self, nixpkgs, ... }@inputs: let supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system); in { overlay = system: final: prev: let pkgs = import nixpkgs { inherit system; }; in with final; { screenshot = pkgs.writeShellScriptBin "screenshot" (builtins.readFile ./screenshot); }; defaultPackage = forAllSystems (system: (import nixpkgs { inherit system; overlays = [ (self.overlay system) ]; }).screenshot); }; }