mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
The old `default.nix` is inlined into the "lib" flake-module, which is
the only place it was used.
This allows "helpers" to take its rightful place at the root of `./lib` 👑
25 lines
529 B
Nix
25 lines
529 B
Nix
{
|
|
config,
|
|
lib,
|
|
withSystem,
|
|
...
|
|
}:
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
_module.args.helpers = import ../lib { inherit lib pkgs; };
|
|
};
|
|
|
|
# TODO: output lib without pkgs at the top-level
|
|
flake.lib = lib.genAttrs config.systems (
|
|
lib.flip withSystem (
|
|
{ pkgs, ... }:
|
|
{
|
|
# NOTE: this is the publicly documented flake output we've had for a while
|
|
check = import ../lib/tests.nix { inherit lib pkgs; };
|
|
helpers = import ../lib { inherit lib pkgs; };
|
|
}
|
|
)
|
|
);
|
|
}
|