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