chore: bump claude-code to version 1.0.58

- Updated `@anthropic-ai/claude-code` dependency from 1.0.44 to 1.0.58.
- Adjusted hashes in `package-lock.json` and `package.nix` to reflect the new version.
- Added `--unset DEV` to `postInstall` to prevent crashes caused by the `DEV=true` environment variable.
This commit is contained in:
Harald Hoyer 2025-07-23 13:54:51 +02:00
parent 12f14a439f
commit 5be043de00
2 changed files with 10 additions and 9 deletions

View file

@ -7,16 +7,16 @@
buildNpmPackage rec {
pname = "claude-code";
version = "1.0.44";
version = "1.0.58";
nodejs = nodejs_20; # required for sandboxed Nix builds on Darwin
src = fetchzip {
url = "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-${version}.tgz";
hash = "sha256-Dnooy0KNfhirTu7hv6DfwL7SHwf++CKtG8VHptNhcxU=";
hash = "sha256-Mp3S269iifNGSEz83IF6bqbgdy6Im1bQjR8oaaL3W8c=";
};
npmDepsHash = "sha256-Q3m4q0g/H5ZWmnMXSipRt3FUFu+SgDAJutVelQsv9ls=";
npmDepsHash = "sha256-TxKqpiPpxEfYowQswMrcWIotAdmLvHJyQ56vK39asNs=";
postPatch = ''
cp ${./package-lock.json} package-lock.json
@ -28,9 +28,11 @@ buildNpmPackage rec {
# `claude-code` tries to auto-update by default, this disables that functionality.
# https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#environment-variables
# The DEV=true env var causes claude to crash with `TypeError: window.WebSocket is not a constructor`
postInstall = ''
wrapProgram $out/bin/claude \
--set DISABLE_AUTOUPDATER 1
--set DISABLE_AUTOUPDATER 1 \
--unset DEV
'';
passthru.updateScript = ./update.sh;