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

@ -0,0 +1,14 @@
{ self }:
{ pkgs, system, scrollsDir, subDirs }:
let
emptyDenoCache = pkgs.runCommand "empty-deno-cache" {} ''
mkdir -p $out
'';
in
builtins.foldl' (accCache: subDir:
self.buildDenoCache {
inherit pkgs system scrollsDir subDir;
baseCache = accCache;
}
) emptyDenoCache subDirs