mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 20:54:56 +02:00
lib: rename helpers.nix
-> default.nix
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` 👑
This commit is contained in:
parent
0b665b200b
commit
7a147234f8
9 changed files with 116 additions and 122 deletions
|
@ -5,7 +5,21 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
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, ... }: import ../lib { inherit pkgs lib; })
|
||||
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; };
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue