nix-community.nixvim/flake-modules/lib.nix

30 lines
597 B
Nix
Raw Normal View History

{
self,
config,
lib,
withSystem,
...
2024-05-05 19:39:35 +02:00
}:
{
_module.args.helpers = import ../lib {
inherit lib;
flake = self;
};
# 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 self lib pkgs; };
2024-12-15 05:23:06 +00:00
# TODO: no longer needs to be per-system
helpers = import ../lib {
inherit lib;
flake = self;
};
}
)
);
}