chore(lib/buildClan): remove dependencies {nixpkgs,nix-darwin} from the clanLib file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user