2023-12-06 13:09:26 +01:00
|
|
|
{
|
2024-12-15 06:51:20 +00:00
|
|
|
self,
|
2023-12-06 13:09:26 +01:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
withSystem,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-12-15 06:51:20 +00:00
|
|
|
_module.args.helpers = import ../lib {
|
|
|
|
inherit lib;
|
|
|
|
flake = self;
|
|
|
|
};
|
2024-09-13 14:44:42 +01:00
|
|
|
|
|
|
|
# TODO: output lib without pkgs at the top-level
|
2023-12-06 13:09:26 +01:00
|
|
|
flake.lib = lib.genAttrs config.systems (
|
2024-09-13 14:44:42 +01:00
|
|
|
lib.flip withSystem (
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
# NOTE: this is the publicly documented flake output we've had for a while
|
2024-12-15 06:51:20 +00:00
|
|
|
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
|
2024-12-15 06:51:20 +00:00
|
|
|
helpers = import ../lib {
|
|
|
|
inherit lib;
|
|
|
|
flake = self;
|
|
|
|
};
|
2024-09-13 14:44:42 +01:00
|
|
|
}
|
|
|
|
)
|
2023-12-06 13:09:26 +01:00
|
|
|
);
|
|
|
|
}
|