Repository navigation
feat(claude): pin Claude Code 2.1.280 until nixos-unstable catches up - #21
NRGLine4Sec wants to merge 1 commit into
Conversation
Opus 5.5 is only selectable from Claude Code 2.1.280 onwards. The locked nixpkgs ships 2.1.258 and nixos-unstable is currently at 2.1.278, so a plain lock bump is not enough yet. Override the nixpkgs derivation with the upstream 2.1.280 release manifest (taken verbatim from nixpkgs master) instead of vendoring a package. The override only applies while pkgs.claude-code is older than the pinned manifest, so the next lock update that brings a newer version makes it a no-op. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe agent module now loads a Claude Code manifest and compares its version with the nixpkgs package version. It uses an override when nixpkgs has an older version, and adds the selected package to the agent’s extra packages. ChangesClaude Code package selection
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The manifest-backed package selection has no identified issue that needs resolution before merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks — full reasoning is on #22, which carries this same commit plus the Short version: the mechanism is sound and I verified the manifest against If day-one access matters to you, the same override works from your own Closing alongside #22. |
Opus 5.5 can't be selected in Claude Code before 2.1.280. Inside the VM the model picker shows "Update to 2.1.280+ to use Opus 5.5", and DISABLE_AUTOUPDATER keeps the CLI from updating itself.
The locked nixpkgs ships 2.1.258 and nixos-unstable is at 2.1.278 right now, so bumping the lock won't fix this yet.
This PR feeds the existing nixpkgs derivation the upstream 2.1.280 release manifest (copied as-is from nixpkgs master) via
.override { manifest = ...; }. No package is vendored. The override only applies whilepkgs.claude-codeis older than the pinned manifest, so it turns into a no-op on the next lock update that brings a newer version. The JSON file can be dropped whenever that's convenient.Tested:
nix evalof the agent packages givesclaude-code-2.1.280on x86_64-linux and aarch64-linuxclaude --versionreports2.1.280 (Claude Code)🤖 Generated with Claude Code
Summary by CodeRabbit