nix-community.nixvim/flake-modules/packages.nix
Matt Sturgeon d2afb176ff
modules: refactor module bootstrapping
Let's simplify things by defining all modules in `./plugins`, `./modules`
and `./wrappers/modules`.

Instead of currying `pkgs` into a bootstrapping module, we can require
`defaultPkgs` be provided as a special arg.

This refactor allows us to completely remove `flake-modules/modules.nix`!
2024-07-02 19:58:30 +01:00

19 lines
397 B
Nix

{
perSystem =
{
pkgsUnfree,
config,
helpers,
...
}:
{
packages = import ../docs {
inherit helpers;
# Building the docs evaluates each plugin's default package, some of which are unfree
pkgs = pkgsUnfree;
};
# Test that all packages build fine when running `nix flake check`.
checks = config.packages;
};
}