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:
parent
12f14a439f
commit
5be043de00
2 changed files with 10 additions and 9 deletions
9
overlays/unstable/claude-code/package-lock.json
generated
9
overlays/unstable/claude-code/package-lock.json
generated
|
@ -6,14 +6,13 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/claude-code": "^1.0.44"
|
"@anthropic-ai/claude-code": "^1.0.57"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@anthropic-ai/claude-code": {
|
"node_modules/@anthropic-ai/claude-code": {
|
||||||
"version": "1.0.44",
|
"version": "1.0.57",
|
||||||
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.44.tgz",
|
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.57.tgz",
|
||||||
"integrity": "sha512-GCX0KeMcyhLlfs/dLWlMiHShAMmjt8d7xcVUS53z7VnV6s3cIIrRPsKQ/xX/Q9rFm5dSVmRnzU88Ku28fb3QKQ==",
|
"integrity": "sha512-zMymGZzjG+JO9iKC5N5pAy8AxyHIMPCL6U3HYCR3vCj5M+Y0s3GAMma6GkvCXWFixRN6KSZItKw3HbQiaIBYlw==",
|
||||||
"hasInstallScript": true,
|
|
||||||
"license": "SEE LICENSE IN README.md",
|
"license": "SEE LICENSE IN README.md",
|
||||||
"bin": {
|
"bin": {
|
||||||
"claude": "cli.js"
|
"claude": "cli.js"
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
buildNpmPackage rec {
|
buildNpmPackage rec {
|
||||||
pname = "claude-code";
|
pname = "claude-code";
|
||||||
version = "1.0.44";
|
version = "1.0.58";
|
||||||
|
|
||||||
nodejs = nodejs_20; # required for sandboxed Nix builds on Darwin
|
nodejs = nodejs_20; # required for sandboxed Nix builds on Darwin
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-${version}.tgz";
|
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 = ''
|
postPatch = ''
|
||||||
cp ${./package-lock.json} package-lock.json
|
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.
|
# `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
|
# 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 = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/claude \
|
wrapProgram $out/bin/claude \
|
||||||
--set DISABLE_AUTOUPDATER 1
|
--set DISABLE_AUTOUPDATER 1 \
|
||||||
|
--unset DEV
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue