Script Outputs
scripts.nix defines checked shell-script outputs that are exposed as flake outputs.
In plain terms, that means the repo publishes small runnable utilities at paths like .#scripts.check_doc_links, and Nix can build or run them just like packages.
Why This Pattern Exists
- Shell scripts are validated at build time with
writeBashBinChecked. - Scripts become reproducible outputs instead of ad-hoc repository helpers.
- CI and local users can run the same commands through
nix run .#scripts.<name>. - The README index checker validates manual
## In this directoryinventories across the repo.
Important Examples
scripts.check_doc_links(also exposed as app.#check-doc-links)scripts.check_readme_index(also exposed as app.#check-readme-index)scripts.check_vale(also exposed as app.#check-vale)scripts.ci_cache
Typical Usage
bash
nix run .#check-doc-links
nix run .#check-readme-index
nix run .#check-valeThe same scripts remain available via legacyPackages as nix run .#scripts.<name>. The top-level apps evaluate through lib.ciTools so local runs avoid loading the full overlay stack.
Source
scripts.nix- Generated Script Index