reuse intermediate deno caches

This commit is contained in:
EatThePooh 2025-08-03 14:09:30 +07:00
parent f459ec8b78
commit 60b5164a8a
9 changed files with 146 additions and 117 deletions

View file

@ -7,19 +7,28 @@ let
scrollsDir = denoScrollsDir;
};
scrolls = builtins.map mkScroll [
scrollDirs = [
"hjq"
"uses-hjq"
];
scrolls = builtins.map mkScroll scrollDirs;
shelfSetup =
lib.collectDenoCaches {
inherit pkgs;
denoCacheDrvs = builtins.map (s: s.env) scrolls;
};
# shelfSetup =
# lib.collectDenoCaches {
# inherit pkgs;
# denoCacheDrvs = builtins.map (s: s.env) scrolls;
# };
sharedCache = lib.buildSharedDenoCache {
inherit pkgs system;
scrollsDir = denoScrollsDir;
subDirs = scrollDirs;
};
in
{
setupScript = shelfSetup;
setupScript = lib.makeDenoShelfSetup {
inherit pkgs sharedCache;
};
scrolls = builtins.map (s: s.meta) scrolls;
}