1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/flake/dev/package-tests.nix
Matt Sturgeon 2365afc0d5 ci: only build packages on x86_64-linux
As a temporary solution, we only include the `packages` output in the
`ci.buildbot` output on x86_64-linux.

At some point, we should consider explicitly copying each package to
`ci.buildbot`, and maybe omitting some.

Some packages may be better off being built on GHA, such as the docs.
2025-09-07 21:52:23 +00:00

16 lines
546 B
Nix

{ lib, ... }:
{
perSystem =
{ config, system, ... }:
{
# Test that all packages build fine when running `nix flake check`.
checks = config.packages;
# Test that all packages build when running buildbot
# FIXME: we want to build most platforms on all systems,
# but building the docs is often too expensive.
# For now, we restrict the whole packages output to one platform.
# TODO: move building the docs to GHA
ci.buildbot = lib.mkIf (system == "x86_64-linux") config.packages;
};
}