Skip to content

docs module: take typst, typstyle and tinymist from nixpkgs-unstable; fix the typstyle description #1993

Open

Description

@gerchowl

The docs capability module (nix/modules/docs.nix) ships typst and typstyle from the stable nixpkgs pin, which is a whole minor version behind upstream:

tool stable pin unstable pin upstream
typst 0.14.2 0.15.1 0.15.1
typstyle 0.14.4 0.15.2 0.15.2
tinymist (not shipped) 0.15.10 0.15.12

Typst language and layout still change between minor versions, so documents written for current Typst may not compile on the stable pin. Typst tooling is exactly the fast-moving class that fastMovers (flake.nix) exists for.

Scope:

  • Add typst, typstyle and tinymist to fastMovers, so every consumer of these attributes resolves the unstable versions: the docs module, the image's typstyle in imageTools and overlays.default.
  • Add tinymist (the Typst language server, for editor diagnostics and preview) to the docs module. typst, typstyle and tinymist must share a Typst minor version; add a test that enforces this.
  • Fix the docs:
    • README.md and docs/templates/README.md.j2 describe typstyle as "Typo and style checks". It is the Typst formatter.
    • Update the docs/NIX.md docs-module section (version source, tinymist) and the docs.nix header comment, which says the module tracks the stable pin.
  • Remove the downstream repository and project names from the docs.nix comment. devkit is public; say "document-oriented consumers".
  • CHANGELOG ## Unreleased: Changed (the toolchain source and versions, noting that consumers regenerate generated/ artifacts once) and Fixed (the docs).

Out of scope, a separate issue: Typst prek guards and a house-style template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions