feat(pdfcraft): add PdfCraft 0.18.0 built from source
CI / check (push) Has been cancelled

Packages the storytold/pdfcraft Cargo workspace at tag v0.18.0: the pdfcraft
desktop app and pdfcraft-cli, with the desktop entry, AppStream metadata,
icons, licences and the two CC-BY-SA OCR models the app reads from
share/pdfcraft/models. No upstream binaries are downloaded.

Two deviations from upstream's build instructions:

- The three [patch.crates-io] entries upstream's own Cargo.lock records as
  [[patch.unused]] (egui_demo_lib, egui_inspection, egui_system_font_provider)
  have no package in nixpkgs' partial vendor tree to resolve against, so cargo
  aborts. postPatch drops them; they are unused, and cargo drops the matching
  lock entries itself, so the build runs without --locked.

- nixos-unstable's rustc 1.98.1 and 1.99.0 reject every AVX-VNNI intrinsic
  ("intrinsic signature mismatch for llvm.x86.avx512.vpdpbusd/vpwssd"), and
  rten-gemm, pic-scale and zlib-rs all use one. The package therefore builds
  against a new nixpkgs-rust195 input (nixos-26.05, rustc 1.95.0), the same
  pattern as nixpkgs-torch211. Follow-up: nix-overlay-g4w.

Also adds a Home Manager module (programs.pdfcraft) to
homeManagerModules.default, and documents both in the README.
This commit is contained in:
2026-11-03 13:48:55 +03:00
parent d05ca58ee6
commit 43199e5b8b
7 changed files with 267 additions and 1 deletions
+25
View File
@@ -39,6 +39,7 @@ A custom Nix overlay and flake providing additional packages not found in upstre
| `omniroute` | Unified AI router with 160+ providers, auto fallback, MCP/A2A, OpenAI-compatible APIs | AI LLM Gateway |
| `open-code-review` | AI-powered code review CLI combining deterministic pipelines with an LLM agent for line-level review comments | AI Coding Agents |
| `pilotdeck` | Task-oriented AI Agent productivity platform (source-built Electron desktop app, plus a headless server command) with WorkSpace isolation, white-box memory, and smart routing | AI Agents |
| `pdfcraft` | PDF reader and editor written from scratch in Rust — comments, forms, page organizing, redaction — plus a headless `pdfcraft-cli` with an opt-in MCP server | PDF Tools |
| `relay-free-llm` | RESTful API to route user prompts to various AI model providers with automatic failover and intent-based routing | AI LLM Gateway |
| `stakpak` | DevOps AI agent that generates infrastructure code, debugs Kubernetes, configures CI/CD, and automates deployments | AI Agents |
| `traycer` | Open-source AI orchestration app for agentic coding | AI Coding Agents |
@@ -181,6 +182,29 @@ Note: the `node_modules` symlink is shared across everything in the plugins
directory; other manually-installed plugins with conflicting npm dependencies
cannot coexist with it.
### PdfCraft (Home Manager)
`pdfcraft` is built from source (no upstream binaries are downloaded). A Home
Manager module installs both programs it ships:
```nix
# in your home-manager configuration
imports = [ millerson-nix-overlay.homeManagerModules.default ];
programs.pdfcraft.enable = true;
```
That puts `pdfcraft` (the desktop app) and `pdfcraft-cli` (headless tool
runner and the opt-in MCP server, `pdfcraft-cli mcp`) on PATH. The module adds
`programs.pdfcraft.package` to `home.packages`; the default is
`pkgs.millerson-nix-overlay.pdfcraft`, so `nixpkgs.overlays` must carry this
flake's overlay, or set `package` yourself.
The package ships the two OCR models under `share/pdfcraft/models`, where the
app looks beside its own `bin/` — `pdfcraft-cli run ocr_status` reports
`"available": true`. The optional `craft-fonts` build input is not used, so
Japanese interface text falls back to an installed system font.
## Development
### Prerequisites
@@ -233,6 +257,7 @@ nix-overlay/
│ ├── omniroute/ # Unified AI router with 160+ providers
│ ├── open-code-review/ # AI code review CLI (deterministic + LLM agent)
│ ├── pilotdeck/ # Task-oriented AI Agent platform (source-built Electron desktop app)
│ ├── pdfcraft/ # PDF reader and editor in Rust, with pdfcraft-cli
│ ├── radar/ # Kubernetes UI (topology, timeline, Helm, GitOps)
│ ├── relay-free-llm/ # AI model provider routing gateway
│ ├── skillsmcp/ # MCP server for Agent Skills