gr-base/shelf/default.nix

26 lines
444 B
Nix
Raw Normal View History

{ pkgs, system, lib }:
let
denoScrollsDir = ./deno;
mkScroll = subDir: lib.readDenoScroll {
inherit pkgs system subDir;
scrollsDir = denoScrollsDir;
2025-08-02 10:24:01 +07:00
};
scrolls = builtins.map mkScroll [
"hjq"
"uses-hjq"
];
shelfSetup =
lib.collectDenoCaches {
inherit pkgs;
denoCacheDrvs = builtins.map (s: s.env) scrolls;
};
2025-08-02 10:24:01 +07:00
in
{
setupScript = shelfSetup;
scrolls = builtins.map (s: s.meta) scrolls;
2025-08-02 10:24:01 +07:00
}