Skip to content

The agent that grows with you

fix(nix): tie devShell's HERMES_PYTHON to the venv actually on PATH

ethernet7eefb0931462
diff --git a/nix/devShell.nix b/nix/devShell.nix
index 2e4007f8544..ac50beb0e69 100644
--- a/nix/devShell.nix
+++ b/nix/devShell.nix
@@ -18,10 +18,7 @@
map (p: p.passthru.packageJsonPath or null) packages
);
- # Non-npm packages may have their own devShellHook (e.g. hermes-agent
- # stamps pyproject.toml + uv.lock for Python venv setup).
- nonNpmHooks = map (p: p.passthru.devShellHook or "") packages;
- combinedNonNpm = pkgs.lib.concatStringsSep "\n" (builtins.filter (h: h != "") nonNpmHooks);
+ hermesAgentDevShellHook = self'.packages.default.passthru.devShellHook;
in
{
devShells.default = pkgs.mkShell {
@@ -49,7 +46,7 @@
]
++ self'.packages.default.passthru.devDeps;
shellHook = ''
- ${combinedNonNpm}
+ ${hermesAgentDevShellHook}
${hermesNpmLib.mkNpmDevShellHook npmPackageJsonPaths}
# Force Node to use Nix's playwright-test binary instead of node_modules/.bin