build/nix: Missing voice dependencies such as libwebrtc
Open 💬 6 comments Opened Apr 13, 2026 by lostmsu
💡 Likely answer: A maintainer (Philipp-M, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.120.0
What subscription do you have?
Plus
Which model were you using?
_No response_
What platform is your computer?
Linux 6.18.21 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
error: No hash was found while vendoring the git dependency libwebrtc-0.3.26. You can add
a hash through the outputHashes argument of importCargoLock:
outputHashes = {
"libwebrtc-0.3.26" = "<hash>";
};
What steps can reproduce the bug?
nix --extra-experimental-features "nix-command flakes" run github:openai/codex/rust-v0.120.0#codex-rs
What is the expected behavior?
Should build and run
Additional information
_No response_
6 Comments
For what it’s worth, v0.119.0 is also affected but v0.118.0 is not.
Introduced in https://github.com/openai/codex/pull/17058
IIUC, because https://github.com/openai/codex/pull/17058/changes#diff-f9ce4d85a9da414b5c5356effc39e1ec46faf50eaece5174b8cb689546a61a2aR16 is there using git rather than crates.io, its hash needs to be added to this set: https://github.com/openai/codex/blob/2f6fc7c137bfa1b607b97bd932370022bea198eb/codex-rs/default.nix#L40
For some reason, it's not possible for outside contributors to create PRs to fix this.
I've fixed it in: https://github.com/openai/codex/compare/main...Philipp-M:fix-nix-build?expand=1
Would be nice if we can upstream this.
And even better would be if the nix build can be enforced in the CI, because it happens rather often that nix build is breaking (and external contributors don't seem to have the permission to fix this...).
bump on this
For what it's worth I switched to numtide's llm-agents flake which has the necessary fixes.
+1 on CI should enforce nix build. Tried using this today on NixOS 25.11 + commit 51fc4b0 and the issue still exists...
Only takes
nix build github:openai/codexto reproduceNo hash was found while vendoring the git dependency libwebrtc-0.3.26. Or would also be great if the community had the ability to fix this ourselvesI reproduced this on current
mainwhile consuming the Codex flake from Nix.The missing hash is for the git dependency from
codex-rs/Cargo.lock:Using Nix's fake-hash workflow, the required output hash is:
While testing current
main, Nix also exposed two stale existing git dependency hashes incodex-rs/default.nix:With those three hash changes,
nix build .#default --no-link --print-out-pathsgets past Cargo vendoring. It then fails later because the current flake toolchain providesrustc 1.93.0, whilesqlx 0.9.0requiresrustc 1.94.0; that appears to be a separate Nix build issue.I pushed a draft-fix branch here, but my current GitHub token cannot open the cross-repo PR from this environment:
https://github.com/alsi-lawr/codex/tree/codex/fix-cargo-output-hashes