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.
This commit is contained in:
parent
83fea90a5e
commit
944d6bf040
3 changed files with 25 additions and 29 deletions
|
|
@ -1,15 +1,10 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p nodePackages.npm nix-update
|
||||
#!nix-shell --pure --keep NIX_PATH -i bash --packages nodejs nix-update git
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
version=$(npm view @anthropic-ai/claude-code version)
|
||||
|
||||
# Generate updated lock file
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
npm i --package-lock-only @anthropic-ai/claude-code@"$version"
|
||||
rm -f package.json
|
||||
|
||||
# Update version and hashes
|
||||
cd -
|
||||
nix-update claude-code --version "$version"
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue