nix build missmatch of dependency hash

Open
#33,693 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
build-system

Research direction

Start by reproducing the failure with nix profile add github:openai/codex on the reported platform. Inspect the Nix packaging and Cargo vendoring inputs associated with tokio-tungstenite-0.28.0; done means the dependency hash is accepted and Codex builds and installs successfully.

Written by the indexing model from the issue text.

Description

bug CLI
What version of Codex CLI is running?

It's not running, but latest commit on main was attempted to be built.

What subscription do you have?

not relevant

Which model were you using?

No response

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

not relevant

What issue are you seeing?

When running nix profile add github:openai/codex:

# large build log output ...
error: hash mismatch in fixed-output derivation '/nix/store/p0sldbpzphpl8xk85kw0ymqlr25i849l-tokio-tungstenite-0e5b2d7.drv':
         specified: sha256-hJAkvWxDjB9A9GqansahWhTmj/ekcelslLUTtwqI7lw=
            got:    sha256-V1xmnrfRWOcZZogelZEA4vvyMj2awCfHVA5/glQ6KAI=
error: Cannot build '/nix/store/lgqa0v8wm213ba0g2whz4k51zckialik-tokio-tungstenite-0.28.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/3fizdrm5rvvh1c877823096vrf5ik82x-tokio-tungstenite-0.28.0
error: Cannot build '/nix/store/y0z3ldh8zam8qd1x3b7gsgmifd19wkjb-cargo-vendor-dir.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/1z4lp3xgx3ycc9iars469c1xq02dh5pw-cargo-vendor-dir
error: Cannot build '/nix/store/wn6wbvb3f88ajclki9n2kxwrwvpzzcvd-codex-rs-0.0.0-dev+18110b8.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/mph6f9ldkc9ll76zm40wqzjp4hb4c2ra-codex-rs-0.0.0-dev+18110b8
$
What steps can reproduce the bug?

Run: nix profile add github:openai/codex

What is the expected behavior?

That codex gets built and installed by nix.

Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.