nixcfg/overlays/unstable/claude-code/update.sh
Harald Hoyer 944d6bf040 feat(claude-code): update to version 2.0.25
- Updated `@anthropic-ai/claude-code` package to version 2.0.25.
- Revised hashes in `package.nix` and `package-lock.json` for the new release.
- Added `writableTmpDirAsHomeHook` and `versionCheckHook` for install checks.
- Refined update script to use `--generate-lockfile` and handle unfree dependencies.
2025-10-23 09:22:33 +02:00

10 lines
396 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell --pure --keep NIX_PATH -i bash --packages nodejs nix-update git
set -euo pipefail
version=$(npm view @anthropic-ai/claude-code version)
# Update version and hashes
AUTHORIZED=1 NIXPKGS_ALLOW_UNFREE=1 nix-update claude-code --version="$version" --generate-lockfile
nix-update vscode-extensions.anthropic.claude-code --use-update-script --version "$version"