deno per package cache derivations + hashes

This commit is contained in:
EatThePooh 2025-08-02 14:14:41 +07:00
parent 9c18a0c924
commit f459ec8b78
9 changed files with 203 additions and 133 deletions

View file

@ -10,16 +10,24 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = {
collectDenoCaches = import ./nix/deno/collect_caches.nix;
readDenoScroll = import ./nix/deno/read_scroll.nix;
};
shelf = import ./shelf {
inherit pkgs system;
inherit pkgs system lib;
};
in
{
packages.shelf = shelf;
inherit lib;
devShells.default = pkgs.mkShell {
buildInputs = [ ];
buildInputs = [ pkgs.deno ];
shellHook = ''
${shelf.setupScript}
echo "Availabe scrolls:"
echo ${pkgs.lib.escapeShellArg (builtins.toJSON shelf.scrolls)} | jq .
'';
};
});