gsmol/flake.nix
randogoth 6f82a84b69 fix: use stdenv.hostPlatform.system, not the removed pkgs.system
nixpkgs renamed it, and the shim warns on every evaluation that imports this
module, so the noise lands on consumers rebuilding their systems rather than
here.
2026-10-06 09:59:12 +03:00

27 lines
912 B
Nix

{
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;
};
}