{ description = "gsmol: browser client for Smol Mail — bridge package and NixOS module"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); in { packages = forEachSystem (pkgs: { default = pkgs.callPackage ./nix/bridge.nix { }; }); apps = forEachSystem (pkgs: { default = { type = "app"; program = pkgs.lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.default; }; }); # Curried on `self` so the module's default package is drawn from the # `packages` output above rather than a second, driftable copy. nixosModules.default = import ./nix/module.nix self; }; }