mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
Some checks are pending
CI / Detect affected areas (push) Waiting to run
CI / Python tests (push) Blocked by required conditions
CI / Python lints (push) Blocked by required conditions
CI / JS & TS checks (push) Blocked by required conditions
CI / Docs Site (push) Blocked by required conditions
CI / Deny unrelated histories (push) Blocked by required conditions
CI / Check contributors (push) Blocked by required conditions
CI / Check uv.lock (push) Blocked by required conditions
CI / package-lock.json diff (push) Blocked by required conditions
CI / Lint Docker scripts (push) Blocked by required conditions
CI / Build&Test Docker image (push) Blocked by required conditions
CI / Supply-chain scan (push) Blocked by required conditions
CI / OSV scan (push) Waiting to run
CI / All required checks pass (push) Blocked by required conditions
CI / CI timing report (push) Blocked by required conditions
Deploy Site / deploy-vercel (push) Waiting to run
Deploy Site / deploy-docs (push) Waiting to run
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Waiting to run
auto-fix lint issues & formatting / Apply patch (push) Blocked by required conditions
https://github.com/NousResearch/hermes-agent/pull/61067 added a @hermes/shared dep for `ui-tui`. added it to the nix deps to fix builds
38 lines
960 B
Nix
38 lines
960 B
Nix
# nix/tui.nix — Hermes TUI (Ink/React) compiled with tsc and bundled
|
|
{ pkgs, hermesNpmLib, ... }:
|
|
let
|
|
npm = hermesNpmLib.mkNpmPassthru {
|
|
dirs = [
|
|
"ui-tui"
|
|
"apps/shared"
|
|
];
|
|
};
|
|
|
|
packageJson = builtins.fromJSON (builtins.readFile (npm.src + "/ui-tui/package.json"));
|
|
version = packageJson.version;
|
|
in
|
|
pkgs.buildNpmPackage (npm // {
|
|
pname = "hermes-tui";
|
|
inherit version;
|
|
|
|
doCheck = false;
|
|
|
|
buildPhase = ''
|
|
# esbuild bundles everything — no need for tsc or vite.
|
|
# Run from the workspace root where node_modules/ lives.
|
|
node ui-tui/scripts/build.mjs
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/lib/hermes-tui
|
|
# esbuild writes to ui-tui/dist/ from the source root (no cd).
|
|
cp -r ui-tui/dist $out/lib/hermes-tui/dist
|
|
|
|
# package.json kept for "type": "module" resolution on `node dist/entry.js`.
|
|
cp ui-tui/package.json $out/lib/hermes-tui/
|
|
|
|
runHook postInstall
|
|
'';
|
|
})
|