{ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; outputs = { nixpkgs, ... }: let supportedArchitectures = [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; in rec { packages = nixpkgs.lib.genAttrs supportedArchitectures (system: { nix_templater = nixpkgs.legacyPackages.${system}.callPackage ./pkgs/nix_templater {}; }); legacyPackages = nixpkgs.lib.genAttrs supportedArchitectures (system: let pkgs = nixpkgs.legacyPackages.${system}; in import ./lib.nix { inherit pkgs; inherit (pkgs) lib; nix_templater = packages.${system}.nix_templater; }); checks = nixpkgs.lib.genAttrs supportedArchitectures (system: { template = import ./tests/template.nix { inherit legacyPackages system nixpkgs; }; json = import ./tests/json.nix { inherit legacyPackages system nixpkgs; }; toml = import ./tests/toml.nix { inherit legacyPackages system nixpkgs; }; }); }; }