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