Skip to content

claude-code: default to darwin system certificate bundle - #579756

Merged
booxter merged 1 commit into
NixOS:masterfrom
adamcstephens:push-zytxrwnvywqz
Oct 29, 2026
Merged

booxter merged 1 commit into
NixOS:masterfrom
adamcstephens:push-zytxrwnvywqz

Conversation

@adamcstephens

@adamcstephens adamcstephens commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #579204

Assisted-By: OpenAI GPT-6.1 Sol medium in OpenCode/2.1.1

Things done

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Oct 27, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs labels Oct 27, 2026
Comment thread pkgs/by-name/cl/claude-code/package.nix Resolved
@mirkolenz

Copy link
Copy Markdown
Member

For users of nix-darwin that should already give the current cacert: https://github.com/nix-darwin/nix-darwin/blob/bb0b90dbd54e207100de72b5dcbe3188c98a4b69/modules/security/pki/default.nix#L99

AFAIK Apple's own certificates are stored at /etc/ssl/cert.pem

Comment thread pkgs/by-name/cl/claude-code/package.nix Resolved
Comment thread pkgs/by-name/cl/claude-code/package.nix Resolved
Comment thread pkgs/by-name/cl/claude-code/package.nix Resolved
@mirkolenz

Copy link
Copy Markdown
Member

The following seems to work for me: mirkolenz/infra@fd9a0fb#diff-0c3d61cbd4447f958f6aba4a672dc5694dbc6f2f6e7fdbcea880ab5a6791c706

Assisted-By: OpenAI GPT-6.1 Sol medium in OpenCode/2.1.1
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 28, 2026

nativeBuildInputs = [
makeBinaryWrapper
makeShellWrapper

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could keep using binary wrapper on !isDarwin.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The stdenv documentation favors makeBinaryWrapper specifically because of Darwin. I'm not sure it's worth switching based on platform?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's a shebang issue with darwin, yes; but there's also an additional hop in exec path to start a shell with shell wrapper.

@booxter booxter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's probably fine but if you decide to pick up the "use shell wrapper only on darwin" suggestion before merge, I'd slightly prefer it. Up to you.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 29, 2026
@adamcstephens

Copy link
Copy Markdown
Contributor Author

There are 6 maintainers for claude-code. Is it really the case that none of them are going to review this?

@booxter

booxter commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Let's get this fixed for folks now since it's completely broken on Darwin, and we can discuss the best wrapper later if anyone cares enough.

@booxter
booxter added this pull request to the merge queue Oct 29, 2026
Merged via the queue into NixOS:master with commit bf0fc86 Oct 29, 2026
37 checks passed
@adamcstephens
adamcstephens deleted the push-zytxrwnvywqz branch October 29, 2026 19:16
matteo-pacini added a commit to matteo-pacini/nixos-configs that referenced this pull request Nov 3, 2026
Watch rows get a right-click menu (Open in nvim, Check or Fix in Claude
Code, Open upstream) and a Fix/Check button. The Claude Code items open a
dialog with an editable prompt, built per tag kind in deploy/prompts.js,
then start `claude` in a new tab at the checkout. Open WATCH issues get no
Claude Code item.

Ready tags sit in their own box at the top; the other groups fold to one
line with a count. Both cards end with their content and the panel
scrolls instead.

Retags from dry-running the prompts: claude-code's NixOS/nixpkgs#579756
is manual (its comment requires a Mac sign-in test before removal), and
opencode waits on the hash fix NixOS/nixpkgs#582675 instead of Hydra.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claude-code: CLAUDE_CODE_CERT_STORE=system breaks TLS on darwin (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)

3 participants