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