Build failure due to missing package-lock.json using provided nix flake
What version of Codex is running?
3eba86a
Which model were you using?
_No response_
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
- Install nix and enable experimental features nix-command and flakes.
- Run:
nix build github:openai/codex
What is the expected behavior?
The flake is built in the nix store and symlinked under result in the current directory.
What do you see instead?
❯ nix build github:openai/codex
error: builder for '/nix/store/33mk8p1qhm97ds6r7nybkgrq0sd6r12c-codex-cli-0.1.0-npm-deps.drv' failed with exit code 1;
last 16 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/5ardzwg23q72143glb3r2v0gfp0hapjn-source/codex-cli
> source root is codex-cli
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
>
> ERROR: The package-lock.json file does not exist!
>
> package-lock.json is required to make sure that npmDepsHash doesn't change
> when packages are updated on npm.
>
> Hint: You can copy a vendored package-lock.json file via postPatch.
>
For full logs, run 'nix log /nix/store/33mk8p1qhm97ds6r7nybkgrq0sd6r12c-codex-cli-0.1.0-npm-deps.drv'.
error: 1 dependencies of derivation '/nix/store/4f8jzfmvwlmh2pnrxinw997mkz86zk4l-codex-cli-0.1.0.drv' failed to build
Additional information
Very happy to see the ambition for nix/flake support.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗