Skip to content

chore(nix): upgrade Python 3.11 → 3.12 and build web frontend#11621

Closed
boozedog wants to merge 5 commits into
NousResearch:mainfrom
boozedog:chore/upgrade-python-312
Closed

chore(nix): upgrade Python 3.11 → 3.12 and build web frontend#11621
boozedog wants to merge 5 commits into
NousResearch:mainfrom
boozedog:chore/upgrade-python-312

Conversation

@boozedog

Copy link
Copy Markdown

Summary

  • Upgrade uv2nix Python environment from 3.11 to 3.12
  • Regenerate uv.lock to include fastapi via the [web] extra
  • Build web frontend during Nix installPhase with buildNpmPackage so hermes web works from a Nix install
  • Add HERMES_WEB_DIST env var override so the server finds pre-built assets
  • Map boozedog email to AUTHOR_MAP

Test plan

  • nix build completes successfully
  • hermes web serves the dashboard from Nix install
  • Virtual environment uses Python 3.12

The Nix package didn't include the web UI — cmd_dashboard tried to
build it at runtime from PROJECT_ROOT/web, which doesn't exist in
the read-only Nix store.

- Add buildNpmPackage derivation for the web frontend
- Install built assets to $out/share/hermes-agent/web_dist
- Set HERMES_WEB_DIST env var in wrappers so the server finds them
- Support HERMES_WEB_DIST in web_server.py as override for WEB_DIST
- Skip runtime npm build when pre-built assets are provided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant