Nix flakes broken
Resolved 💬 0 comments Opened Sep 11, 2025 by davidak Closed Nov 23, 2025
What version of Codex is running?
no one
Which model were you using?
none
What platform is your computer?
Linux 6.12.45 x86_64 unknown
What steps can reproduce the bug?
[davidak@gaming:~/code/agents4science-paper]$ nix flake show github:openai/codex
github:openai/codex/162e1235a8e2db9d99b59eb0f3ef0b9da7ffe2e7?narHash=sha256-DjyGlvEz3KTX6/sn4C1FJGde8xAheQAhZP0b562Aq5U%3D
├───apps
│ ├───aarch64-darwin
error:
… while calling the 'import' builtin
at /nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/flake.nix:28:21:
27| ];
28| codex-cli = import ./codex-cli {
| ^
29| inherit pkgs monorepo-deps;
error: opening file '/nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/codex-cli/default.nix': No such file or directory
[davidak@gaming:~/code/agents4science-paper]$ nix run github:openai/codex
error:
… while evaluating the attribute 'defaultApp'
at /nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/flake.nix:53:9:
52| defaultPackage = packages.codex-cli;
53| defaultApp = apps.codex-cli;
| ^
54| defaultDevShell = devShells.codex-cli;
… while evaluating the attribute 'codex-cli'
at /nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/flake.nix:48:11:
47| apps = {
48| codex-cli = codex-cli.app;
| ^
49| codex-rs = codex-rs.app;
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: opening file '/nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/codex-cli/default.nix': No such file or directory
[davidak@gaming:~/code/agents4science-paper]$ nix profile install github:openai/codex#codex-cli
error:
… while calling the 'import' builtin
at /nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/flake.nix:28:21:
27| ];
28| codex-cli = import ./codex-cli {
| ^
29| inherit pkgs monorepo-deps;
error: opening file '/nix/store/26zndhhbwxpsjbrnn3p6j1nvpp88h5ry-source/codex-cli/default.nix': No such file or directory
What is the expected behavior?
be able to install the package directly from this repo with nix
What do you see instead?
errors
Additional information
Workaround:
Use the package from numtide:
nix profile install github:numtide/nix-ai-tools#codex
@0xadeeb @gerred