bump-overlay-versions by colonelpanic8/dotfiles
npx skills add https://github.com/colonelpanic8/dotfiles --skill bump-overlay-versions更新 ~/dotfiles/nixos/overlay.nix 中的 claude-code 和/或 codex 至最新版本。Nix 要求正确的哈希值,这些哈希值必须通过失败的构建过程来发现。
| 包名 | 检查最新版本 | 哈希字段 |
|---|---|---|
| claude-code | npm view @anthropic-ai/claude-code version | hash, npmDepsHash (保持为空) |
| codex | `curl -s "https://api.github.com/repos/openai/codex/releases/latest" | jq -r '.tag_name'` |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 当前版本位于 overlay.nix 文件的 claudeCodeVersion 和 codexVersion 代码块中
# 检查最新版本:
npm view @anthropic-ai/claude-code version
curl -s "https://api.github.com/repos/openai/codex/releases/latest" | jq -r '.tag_name'
# codex 标签格式:rust-v0.92.0 -> 版本号为 0.92.0
在 ~/dotfiles/nixos/overlay.nix 文件中:
对于 claude-code:
claudeCodeVersion = {
version = "X.Y.Z"; # 更新为新版本
hash = ""; # 清空 - 将从构建错误中获取
npmDepsHash = ""; # 保持为空 (无 npm 依赖)
};
对于 codex:
codexVersion = {
version = "X.Y.Z"; # 更新为新版本 (去掉 rust-v 前缀)
hash = ""; # 清空 - 将从构建错误中获取
cargoHash = ""; # 清空 - 将从构建错误中获取
};
just switch
构建将因哈希值不匹配而失败,并显示正确的哈希值。复制 got: 后面的哈希值。
对于 codex: 你需要运行两次——一次获取 hash (源码),一次获取 cargoHash (cargo 依赖)。
用构建错误中得到的哈希值替换空字符串,然后再次运行 just switch。
该 overlay 使用布尔标志——设置为 false 以使用 nixpkgs 的版本:
enableCodexOverride = true; # 设置为 false 以使用 nixpkgs 的 codex
enableClaudeCodeOverride = true; # 设置为 false 以使用 nixpkgs 的 claude-code
切勿删除覆盖代码——只需切换标志即可。
~/dotfiles/nixos/overlay.nix
每周安装次数
1
代码仓库
GitHub 星标数
210
首次出现
今天
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Updates claude-code and/or codex to latest versions in ~/dotfiles/nixos/overlay.nix. Nix requires correct hashes which must be discovered through failed builds.
| Package | Check Latest | Hash Fields |
|---|---|---|
| claude-code | npm view @anthropic-ai/claude-code version | hash, npmDepsHash (keep empty) |
| codex | `curl -s "https://api.github.com/repos/openai/codex/releases/latest" | jq -r '.tag_name'` |
# Current versions are in overlay.nix claudeCodeVersion and codexVersion blocks
# Check latest:
npm view @anthropic-ai/claude-code version
curl -s "https://api.github.com/repos/openai/codex/releases/latest" | jq -r '.tag_name'
# codex tag format: rust-v0.92.0 -> version is 0.92.0
In ~/dotfiles/nixos/overlay.nix:
For claude-code:
claudeCodeVersion = {
version = "X.Y.Z"; # Update to new version
hash = ""; # Clear - will get from build error
npmDepsHash = ""; # Keep empty (no npm deps)
};
For codex:
codexVersion = {
version = "X.Y.Z"; # Update to new version (without rust-v prefix)
hash = ""; # Clear - will get from build error
cargoHash = ""; # Clear - will get from build error
};
just switch
The build will fail with hash mismatch errors showing the correct hash. Copy the got: hash value.
For codex: You'll need to run twice - once for hash (source), once for cargoHash (cargo deps).
Replace empty strings with the hashes from build errors, then run just switch again.
The overlay uses boolean flags - set to false to use nixpkgs versions instead:
enableCodexOverride = true; # Set false to use nixpkgs codex
enableClaudeCodeOverride = true; # Set false to use nixpkgs claude-code
Never delete the override code - just toggle the flags.
~/dotfiles/nixos/overlay.nix
Weekly Installs
1
Repository
GitHub Stars
210
First Seen
Today
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
114,200 周安装