Add Nix flake for reproducible dev and CI/CD

- flake.nix pins the full toolchain (asciidoctor + pdf/epub3/diagram/
  mathematical, plantuml, graphviz, jre, vale, epubcheck) via bundlerEnv
- Gemfile/Gemfile.lock/gemset.nix lock the Ruby gems; work around the
  vendored mtex2MML cmake_minimum_required incompatibility
- 'nix build' produces book.pdf + book.epub; 'nix develop' gives a shell
  where all existing make targets work
- CI/CD workflows now install Nix and build/lint/validate through the flake
- devcontainer uses Nix; add .envrc for direnv; document in README

Co-authored-by: Shelley <shelley@exe.dev>
This commit is contained in:
Dunya Kirkali
2026-08-08 15:36:51 +00:00
committed by Dunya Kirkali
parent c0c95fdff5
commit 0f64b1133e
13 changed files with 822 additions and 31 deletions

3
.envrc Normal file
View File

@@ -0,0 +1,3 @@
# Enable a reproducible dev environment with direnv + nix.
# Run `direnv allow` once; the flake dev shell then loads automatically.
use flake