11.stylix/flake/packages.nix
Matt Sturgeon 07af242a44 doc: replace inputs input with self
The docs no longer needs access to arbitrary flake inputs. We should
enforce this strictly by taking `self` instead.
2025-06-21 20:25:14 -07:00

33 lines
952 B
Nix

{ lib, inputs, ... }:
{
perSystem =
{ pkgs, config, ... }:
{
# Build all packages with 'nix flake check' instead of only verifying they
# are derivations.
checks = config.packages;
# Make 'nix run .#doc' serve the documentation site
apps.doc.program = config.packages.serve-docs;
packages = lib.mkMerge [
# Testbeds are virtual machines based on NixOS, therefore they are
# only available for Linux systems.
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux (
import ../stylix/testbed/default.nix {
inherit pkgs inputs lib;
}
))
{
doc = pkgs.callPackage ../doc {
inherit (inputs) self;
};
serve-docs = pkgs.callPackage ../doc/server.nix {
inherit (config.packages) doc;
};
palette-generator = pkgs.callPackage ../palette-generator { };
}
];
};
}