feat(claude-code): update to version 1.0.128
- Updated `@anthropic-ai/claude-code` package to version 1.0.128. - Adjusted hashes in `package.nix` and `package-lock.json` for the new version. - Removed redundant `--unset DEV` flag in `postInstall` script.
This commit is contained in:
parent
6ab42d52fe
commit
3e596d7ec1
2 changed files with 8 additions and 11 deletions
8
overlays/unstable/claude-code/package-lock.json
generated
8
overlays/unstable/claude-code/package-lock.json
generated
|
@ -6,13 +6,13 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/claude-code": "^1.0.109"
|
"@anthropic-ai/claude-code": "^1.0.128"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@anthropic-ai/claude-code": {
|
"node_modules/@anthropic-ai/claude-code": {
|
||||||
"version": "1.0.109",
|
"version": "1.0.128",
|
||||||
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.109.tgz",
|
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.128.tgz",
|
||||||
"integrity": "sha512-gjj76f/+M5KfI+ORA9VNVJgR7s8eyur66XCWIIO66q4poNWcszxidXo+TDTqokLLwuNV+qFGx4JkK/PDmtwqMA==",
|
"integrity": "sha512-uUg5cFMJfeQetQzFw76Vpbro6DAXst2Lpu8aoZWRFSoQVYu5ZSAnbBoxaWmW/IgnHSqIIvtMwzCoqmcA9j9rNQ==",
|
||||||
"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.111";
|
version = "1.0.128";
|
||||||
|
|
||||||
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-yA+ttxG2KH2WFeMI0YzVqgbs4kblZRkpw/owpdIqH1E=";
|
hash = "sha256-dzLGcCgje3FMMS+Ptmxd2JK08y7z9rI0ak5l3Bv1MUk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
npmDepsHash = "sha256-jpvy7b4A+E5iI7Y7kYnwH51BZAQGVXKaf3lQjI9e3OM=";
|
npmDepsHash = "sha256-Oba5Wx3HdrXaYKklm9LrKXVdvBeo05CgGy4zzo2B9T0=";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
cp ${./package-lock.json} package-lock.json
|
cp ${./package-lock.json} package-lock.json
|
||||||
|
@ -28,11 +28,9 @@ 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;
|
||||||
|
@ -44,7 +42,6 @@ buildNpmPackage rec {
|
||||||
license = lib.licenses.unfree;
|
license = lib.licenses.unfree;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
malo
|
malo
|
||||||
markus1189
|
|
||||||
omarjatoi
|
omarjatoi
|
||||||
];
|
];
|
||||||
mainProgram = "claude";
|
mainProgram = "claude";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue