lib: mkOfflineFlakeLock init

copied from the clan-core-flake module

I plan to re-use this function to improve the clan test framework to allow cli execution
This commit is contained in:
DavHau
2025-06-09 14:26:57 +07:00
parent ae5781c09c
commit 828e97775a
3 changed files with 52 additions and 39 deletions

View File

@@ -51,6 +51,11 @@ lib.fix (clanLib: {
jsonschema = import ./jsonschema { inherit lib; };
facts = import ./facts.nix { inherit lib; };
# flakes
flakes = clanLib.callLib ./flakes.nix {
clan-core = self;
};
# deprecated
# remove when https://git.clan.lol/clan/clan-core/pulls/3212 is implemented
inherit (self.inputs.nix-select.lib) select;