deno per package cache derivations + hashes
This commit is contained in:
parent
9c18a0c924
commit
f459ec8b78
9 changed files with 203 additions and 133 deletions
14
flake.nix
14
flake.nix
|
|
@ -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 .
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue