gr-base/shelf/default.nix

29 lines
557 B
Nix
Raw Normal View History

{ pkgs, system, lib }:
let
denoScrollsDir = ./deno;
2025-08-03 14:20:58 +07:00
scrollDirs = lib.discoverScrolls {
scrollsDir = denoScrollsDir;
};
mkScroll = subDir: lib.readDenoScroll {
inherit pkgs system subDir;
scrollsDir = denoScrollsDir;
2025-08-02 10:24:01 +07:00
};
2025-08-03 14:09:30 +07:00
scrolls = builtins.map mkScroll scrollDirs;
2025-08-03 14:09:30 +07:00
sharedCache = lib.buildSharedDenoCache {
inherit pkgs system;
scrollsDir = denoScrollsDir;
subDirs = scrollDirs;
};
2025-08-02 10:24:01 +07:00
in
{
2025-08-03 14:09:30 +07:00
setupScript = lib.makeDenoShelfSetup {
inherit pkgs sharedCache;
};
scrolls = builtins.map (s: s.meta) scrolls;
2025-08-02 10:24:01 +07:00
}