aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs/claude-code
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-29 02:42:57 +0900
committernsfisis <nsfisis@gmail.com>2025-07-29 02:42:57 +0900
commitf438ad297e502cc972c0525204ef4cea826119f6 (patch)
tree81275fdd39c2d2fdc0bec000563560dde0991864 /pkgs/claude-code
parentfe2622f711c67956391cf324585858c6d1e37503 (diff)
downloadnur-packages-f438ad297e502cc972c0525204ef4cea826119f6.tar.gz
nur-packages-f438ad297e502cc972c0525204ef4cea826119f6.tar.zst
nur-packages-f438ad297e502cc972c0525204ef4cea826119f6.zip
feat(claude-code): update
Diffstat (limited to 'pkgs/claude-code')
-rw-r--r--pkgs/claude-code/default.nix12
-rw-r--r--pkgs/claude-code/package-lock.json8
2 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/claude-code/default.nix b/pkgs/claude-code/default.nix
index 7697656..d18c178 100644
--- a/pkgs/claude-code/default.nix
+++ b/pkgs/claude-code/default.nix
@@ -1,4 +1,4 @@
-# https://github.com/NixOS/nixpkgs/blob/3016b4b15d13f3089db8a41ef937b13a9e33a8df/pkgs/by-name/cl/claude-code/package.nix
+# https://github.com/NixOS/nixpkgs/blob/6027c30c8e9810896b92429f0092f624f7b1aace/pkgs/by-name/cl/claude-code/package.nix
{
lib,
@@ -9,16 +9,16 @@
buildNpmPackage rec {
pname = "claude-code";
- version = "1.0.56";
+ version = "1.0.61";
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-q/17LfP5MWeKpt8akPXwMvkZ6Qhc+9IGpM6N34JuExY=";
+ hash = "sha256-K10rlFGi2KH65VE0kiBY1lU16xkMPV24/GSD6OjU3v0=";
};
- npmDepsHash = "sha256-0hr5Tu2/0ETEgNb2s4BQGZXjsHrFzK+iD2ZtZNTlyoI=";
+ npmDepsHash = "sha256-8Wt8+ZVMSESULguBME/TMMbTUXH3Soha3RTHWs1rBow=";
postPatch = ''
cp ${./package-lock.json} package-lock.json
@@ -30,9 +30,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;
diff --git a/pkgs/claude-code/package-lock.json b/pkgs/claude-code/package-lock.json
index 2542da9..a80dbd6 100644
--- a/pkgs/claude-code/package-lock.json
+++ b/pkgs/claude-code/package-lock.json
@@ -6,13 +6,13 @@
"packages": {
"": {
"dependencies": {
- "@anthropic-ai/claude-code": "^1.0.56"
+ "@anthropic-ai/claude-code": "^1.0.61"
}
},
"node_modules/@anthropic-ai/claude-code": {
- "version": "1.0.56",
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.56.tgz",
- "integrity": "sha512-LYOlv9uXtLrJcJqSLvQlhy7shhC6MHEXuSGZ/+BazM4LY36ng3cmKjTCDny0kZQxa+u/+MYOXUrkmkJm2qR75Q==",
+ "version": "1.0.61",
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-1.0.61.tgz",
+ "integrity": "sha512-+gjKzY1hsWfHoH52SgKR6E0ujCDPyyRsjyRShtZfS0urKd8VQq3D/DF3hvT3P4JJeW0YuWp5Dep0aSRON+/FFA==",
"license": "SEE LICENSE IN README.md",
"bin": {
"claude": "cli.js"