Package the headless T3 Code server CLI (t3) in the flake

nixpkgs has no t3code package and the npm `t3` package is only a
downloader, so fetch the official GitHub release tarball for
v0.1.12-nightly.20261123.5165 (4 commits ahead of the vendor pin) and
wrap it as packages.t3 / a devShell binary. The Node SEA binary is left
unstripped and unpatched (patchelf/strip corrupt its embedded resource);
only native .node modules get an rpath to nix libraries.

Verified: `t3 serve` runs headless and writes the server-runtime.json
that t3tui discovers. `t3 --version` and `t3 serve --help` work through
`nix develop`.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
venomade committed 2026-11-24 01:14:30 +00:00
1 parent b40f09e56f
commit 6a7b9d26a0
3 files changed
+73 -2

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ See [docs/reference.md](docs/reference.md) for every key, the message box, diffs
t3tui finds the local T3 Code server from `~/.t3/userdata/server-runtime.json` (override with `T3TUI_SERVER`). On first run it issues itself a session with `t3 auth session issue --label t3tui`, scoped to what it needs, and stores it in `~/.config/t3tui/credentials.json`. Revoke it any time with `t3 auth session revoke`. For a remote server, pass a token in `T3TUI_TOKEN`.
No desktop app needed: the flake in this repo also packages the headless server CLI, so `nix develop --command t3 serve` (or `nix build .#t3` and run `result/bin/t3 serve`) starts T3 Code with no browser — it writes the same `server-runtime.json` that t3tui reads.
The scopes, the protocol and how to update for a newer T3 Code are in [docs/development.md](docs/development.md).
## Not yet supported