fix(nix): set HERMES_BIN default in wrapped binaries

The TUI resolves the CLI via process.env.HERMES_BIN (externalCli.ts) and
falls back to a bare 'hermes', which is not on PATH for nix run / nix
profile installs that only expose the wrapped binaries. Set a
--set-default so the wrapper advertises its own hermes while an explicit
operator override (documented in kanban_db.py) still wins.
This commit is contained in:
alt-glitch
2026-07-22 21:04:44 +05:30
committed by ethernet
parent a2fbe745b4
commit 0490b00e74

View File

@@ -192,6 +192,7 @@ stdenv.mkDerivation (finalAttrs: {
--set HERMES_OPTIONAL_MCPS $out/share/hermes-agent/optional-mcps \
--set HERMES_WEB_DIST $out/share/hermes-agent/web_dist \
--set HERMES_TUI_DIR $out/ui-tui \
--set-default HERMES_BIN $out/bin/hermes \
--set HERMES_PYTHON ${hermesVenv}/bin/python3 \
--set HERMES_NODE ${lib.getExe hermesNpmLib.nodejs}${
# Fold the line continuation INTO the optionalString: a bare