mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +02:00
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`!
19 lines
397 B
Nix
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;
|
|
};
|
|
}
|