wrap loom into a Nix package

This commit is contained in:
EatThePooh 2025-10-14 12:41:15 +07:00
parent 30e97f5b8e
commit 67d13d8634
6 changed files with 58 additions and 26 deletions

View file

@ -19,7 +19,7 @@
shelf = import ./shelf {
inherit pkgs system lib;
};
in {
in rec {
deno = {
enable = true;
lockfiles = shelf.lockfiles ++ [ ./platform/loom/deno.lock ];
@ -28,8 +28,10 @@
packages.website =
import ./nix/website.nix { inherit pkgs; root = ./.; };
packages.loom = import ./platform { inherit pkgs; denoCache = config.packages.deno-cache; };
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ config.packages.deno pandoc reuse ];
buildInputs = with pkgs; [ config.packages.deno pandoc reuse packages.loom ];
inputsFrom = [ config.flake-root.devShell ];
shellHook = ''
echo "Available scrolls:"