scroll auto discovery

This commit is contained in:
EatThePooh 2025-08-03 14:20:58 +07:00
parent 60b5164a8a
commit 8769d9de00
9 changed files with 44 additions and 20 deletions

View file

@ -2,23 +2,17 @@
let
denoScrollsDir = ./deno;
scrollDirs = lib.discoverScrolls {
scrollsDir = denoScrollsDir;
};
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;