Skip to content

Conversation

@Mic92
Copy link
Contributor

@Mic92 Mic92 commented Sep 22, 2025

I dropped the build of the old cli from the flake, where the default.nix already seemed to removed in a previous iterations. Then I updated flake.nix and codex-rs expression to be able to build again (see individual commits for details).

Tested by running the following builds:

$ nix build .#packages.x86_64-linux.codex-rs
$ nix build .#packages.aarch64-darwin.codex-cli

@github-actions
Copy link

github-actions bot commented Sep 22, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 22, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Sep 22, 2025
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 24, 2025

cc @tibo-openai you merged the first pr.

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 24, 2025

I am planning to include this flake in https://github.com/numtide/nix-ai-tools to monitor if it still builds over time.

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 24, 2025

cc @gerred @0xadeeb

Copy link
Contributor

@0xadeeb 0xadeeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but check if monorepo-deps in flakes.nix (pnpm and husky) is still required. If not you can remove them too

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 25, 2025

I also removed more stuff that was not needed. Check individual commits for details. Overall a nice simplification without loosing any features.

@Mic92
Copy link
Contributor Author

Mic92 commented Sep 29, 2025

cc @bolinfest for review

@Mic92 Mic92 requested a review from 0xadeeb October 4, 2025 16:37
@Mic92
Copy link
Contributor Author

Mic92 commented Oct 4, 2025

cc @jif-oai for review

@Mic92
Copy link
Contributor Author

Mic92 commented Oct 17, 2025

cc @pakrym-oai

Mic92 added 9 commits October 17, 2025 07:11
the default.nix for this was removed, so this package is no longer
functional:

% nix build .#packages.aarch64-darwin.codex-cli
error:
       … while calling the 'import' builtin
         at /nix/store/67mzwrmcffhiagq88zwnigb8npv6lxxv-source/flake.nix:28:21:
           27|         ];
           28|         codex-cli = import ./codex-cli {
             |                     ^
           29|           inherit pkgs monorepo-deps;

       error: opening file '/nix/store/67mzwrmcffhiagq88zwnigb8npv6lxxv-source/codex-cli/default.nix': No such file or directory

Signed-off-by: Jörg Thalheim <[email protected]>
also defaultPackage / defaultApps got deprecated by packages.default
quite a while ago, which is now dropped.

Signed-off-by: Jörg Thalheim <[email protected]>
the previous of nixpkgs was too old to build codex-rs

Signed-off-by: Jörg Thalheim <[email protected]>
this is needed because ratatui fetched from git

Signed-off-by: Jörg Thalheim <[email protected]>
it was configured but unused.
this flake is simple enough to not need it.
this is just the same as packages in this case, nix run will work also
with packages outputs.
The shell alias looks dubious and the shellHook also doesn't work:

bash: /nix/store/b010ibix7i333qhv5smcb129yly1dmfj-cargo-setup-hook.sh:
Is a directory

This devShell is actually not needed. nix develop will just fallback to
the package, which has already all dependencies.
on the upside we can now use just callPackage which also work better
with cross-compilation than the current approach.
@pakrym-oai
Copy link
Collaborator

Thank you!

@pakrym-oai pakrym-oai merged commit 44ceaf0 into openai:main Oct 17, 2025
18 of 20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
@Mic92 Mic92 deleted the fix-nix-build branch October 18, 2025 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants