reuse intermediate deno caches
This commit is contained in:
parent
f459ec8b78
commit
60b5164a8a
9 changed files with 146 additions and 117 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue