The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(nix): ffprobe on darwin and native dev commands in devVenv
ethernet75f8bd95fe73
diff --git a/nix/checks.nix b/nix/checks.nixindex bfd48599c55..67e5070653d 100644--- a/nix/checks.nix+++ b/nix/checks.nix@@ -193,6 +193,9 @@ json.dump(sorted(leaf_paths(DEFAULT_CONFIG)), sys.stdout, indent=2)assert sys.base_prefix == "${hermes-agent.pmPython}", sys.base_prefix'env -i "$venv/bin/pytest" --version+ # Native dev commands survive alongside the re-shebanged scripts.+ env -i "$venv/bin/ruff" --version+ env -i "$venv/bin/ty" --versionmkdir -p $outecho ok > $out/result'';diff --git a/nix/hermes-agent.nix b/nix/hermes-agent.nixindex 69a1ca67d72..1e8ac517929 100644--- a/nix/hermes-agent.nix+++ b/nix/hermes-agent.nix@@ -14,6 +14,7 @@electron,git,openssh,+ ffmpeg-headless,# for pmwriteShellApplication,@@ -161,6 +162,15 @@ letgitopenssh]+ # pm's macOS ffmpeg is a single binary with no ffprobe, which transcription+ # needs to measure duration before splitting long recordings. Only ffprobe+ # is linked, so `ffmpeg` on PATH stays the pinned build.+ ++ lib.optionals stdenv.hostPlatform.isDarwin [+ (runCommand "ffprobe-${ffmpeg-headless.version}" { } ''+ mkdir -p $out/bin+ ln -s ${lib.getBin ffmpeg-headless}/bin/ffprobe $out/bin/ffprobe+ '')+ ]++ lib.optionals stdenv.hostPlatform.isLinux [wl-clipboardxclip@@ -337,12 +347,20 @@ stdenv.mkDerivation (finalAttrs: {for name in python python3 python${python.pythonVersion}; doln -s ${pmPython}/bin/python3 $out/bin/$namedone+ # Every other command carries over: Python scripts re-shebanged onto+ # this venv, native ones (ruff, ty) linked as-is. The activate scripts+ # and devPython's own interpreter links would point back at devPython.+ devInterpreter=$(readlink -f ${devPython}/bin/python3)for script in ${devPython}/bin/*; doname=$(basename "$script")[ -e "$out/bin/$name" ] && continue+ case "$name" in activate*|Activate*) continue ;; esac+ [ "$(readlink -f "$script")" = "$devInterpreter" ] && continueif head -n1 "$script" | grep -q '^#!.*python'; then{ echo "#!$out/bin/python3"; tail -n +2 "$script"; } > "$out/bin/$name"chmod +x "$out/bin/$name"+ else+ ln -s "$script" "$out/bin/$name"fidone'';