treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'

This commit is contained in:
Johannes Kirschbauer
2025-04-09 11:32:46 +02:00
parent 059cc1e2ea
commit e37f16f47a
12 changed files with 19 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ in
inherit lib;
inherit (inputs) nixpkgs;
clan-core = self;
buildClan = self.lib.buildClan;
buildClan = self.clanLib.buildClan;
};
checks = {
lib-build-clan-eval = pkgs.runCommand "tests" { nativeBuildInputs = [ pkgs.nix-unit ]; } ''

View File

@@ -17,7 +17,7 @@ let
inherit (config.clanInternals) inventory;
inherit (clan-core.lib.inventory) buildInventory;
inherit (clan-core.clanLib.inventory) buildInventory;
supportedSystems = [
"x86_64-linux"
@@ -254,7 +254,7 @@ in
inherit darwinConfigurations;
clanInternals = {
moduleSchemas = clan-core.lib.modules.getModulesSchema config.inventory.modules;
moduleSchemas = clan-core.clanLib.modules.getModulesSchema config.inventory.modules;
inherit inventoryClass;
distributedServices = clan-core.clanLib.inventory.mapInstances {
inherit inventory;
@@ -268,7 +268,7 @@ in
inherit inventoryFile;
inventoryValuesPrios =
# Temporary workaround
builtins.removeAttrs (clan-core.lib.values.getPrios { options = inventory.options; })
builtins.removeAttrs (clan-core.clanLib.values.getPrios { options = inventory.options; })
# tags are freeformType which is not supported yet.
[ "tags" ];

View File

@@ -74,7 +74,7 @@ let
roles =
if builtins.elem "inventory" frontmatter.features or [ ] then
assert lib.isPath module;
clan-core.lib.modules.getRoles "Documentation: inventory.modules" allModules moduleName
clan-core.clanLib.modules.getRoles "Documentation: inventory.modules" allModules moduleName
else
[ ];
in

View File

@@ -6,16 +6,16 @@
}:
let
modulesSchema = self.lib.modules.getModulesSchema {
modulesSchema = self.clanLib.modules.getModulesSchema {
modules = self.clanModules;
inherit pkgs;
clan-core = self;
};
jsonLib = self.lib.jsonschema { inherit includeDefaults; };
jsonLib = self.clanLib.jsonschema { inherit includeDefaults; };
includeDefaults = true;
frontMatterSchema = jsonLib.parseOptions self.lib.modules.frontmatterOptions { };
frontMatterSchema = jsonLib.parseOptions self.clanLib.modules.frontmatterOptions { };
inventorySchema = jsonLib.parseModule (import ../build-inventory/interface.nix);