nix-community.nixvim/flake-modules/packages.nix
Matt Sturgeon 4b3b67fb6f
lib: make overrideable & access via flake
Add a non-system specific `<flake>.lib.nixvim` output, which is
equivalent to the existing `<flake>.lib.<system>.helpers` output.

This is now also wrapped with `lib.makeOverridable` to allow overriding
the function args used to construct the nixvim-lib.

Consistently access nixvim-lib via the new flake output, overriding
where necessary.
2024-12-21 15:17:43 +00:00

25 lines
404 B
Nix

{
inputs,
helpers,
...
}:
{
perSystem =
{
config,
inputs',
system,
...
}:
{
packages = import ../docs {
inherit helpers;
inherit system;
inherit (inputs) nixpkgs;
inherit (inputs') nuschtosSearch;
};
# Test that all packages build fine when running `nix flake check`.
checks = config.packages;
};
}