gr-base/shelf
2025-08-03 13:41:38 +07:00
..
deno deno per package cache derivations + hashes 2025-08-03 13:41:38 +07:00
default.nix deno per package cache derivations + hashes 2025-08-03 13:41:38 +07:00
README.org document deno scrolls situation 2025-08-02 08:54:36 +07:00

Scroll conventions

Deno

Each Deno scroll:

  • is an immediate subdirectory of ./deno
  • contains a Deno lockfile Unless you're trying to shoot yourself or downstream dep maintainers in the foot.
  • contains a scroll.nix file
  • defines cache-command field in scroll.nix cache-command triggers Deno cache build, putting cache in $DENO_DIR.
  • does not use JSR dependencies They have heavily timestamped metadata and therefore do not support reproducible builds.
  • can use NPM dependencies

.lock, .json and .jsonc files are recursively hashed to determine if the cache is updated.

In that case a new entry needs to be added in knownHashes.

All scrolls currently are to use the same Deno version defined by the flake.

See ./deno-workflow.nix for details.