chore(lib/buildClan): remove dependencies {nixpkgs,nix-darwin} from the clanLib file

This commit is contained in:
Johannes Kirschbauer
2025-04-08 22:13:46 +02:00
parent f399aad06e
commit c357cfa29f
2 changed files with 8 additions and 4 deletions

View File

@@ -3,8 +3,6 @@
## Add any logic to ./module.nix
{
lib,
nixpkgs,
nix-darwin ? null,
...
}:
{
@@ -35,7 +33,10 @@
buildClanWith =
{
clan-core,
# TODO: Below should be module options such that the user can override them?
nixpkgs,
publicAttrs ? import ./public.nix,
nix-darwin ? null,
}:
{
## Inputs

View File

@@ -15,11 +15,14 @@ lib.fix (clanLib: {
*/
callLib = file: args: import file ({ inherit lib clanLib; } // args);
buildClan = clanLib.buildClanModule.buildClanWith { clan-core = self; };
buildClan = clanLib.buildClanModule.buildClanWith {
clan-core = self;
inherit nixpkgs nix-darwin;
};
# ------------------------------------
# ClanLib functions
evalClan = clanLib.callLib ./inventory/eval-clan-modules { };
buildClanModule = clanLib.callLib ./build-clan { inherit nixpkgs nix-darwin; };
buildClanModule = clanLib.callLib ./build-clan { };
inventory = clanLib.callLib ./inventory { };
modules = clanLib.callLib ./inventory/frontmatter { };