nixpkgs/pkgs/by-name/cl/claude-code/update.sh
Maciej Wojterski 2149b9169a claude-code: use baseUrl from official install script
(cherry picked from commit 1f9a45d327)
2026-06-25 08:41:06 +02:00

12 lines
339 B
Bash
Executable file

#!/usr/bin/env nix
#!nix shell --ignore-environment .#cacert .#coreutils .#curl .#bash --command bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
BASE_URL="https://downloads.claude.ai/claude-code-releases"
VERSION="${1:-$(curl -fsSL "$BASE_URL/latest")}"
curl -fsSL "$BASE_URL/$VERSION/manifest.json" --output manifest.json