diff --git a/pkgs/by-name/cl/claude-code/package.nix b/pkgs/by-name/cl/claude-code/package.nix index e91b133e8f64..c69a2bf8f4d9 100644 --- a/pkgs/by-name/cl/claude-code/package.nix +++ b/pkgs/by-name/cl/claude-code/package.nix @@ -23,6 +23,14 @@ buildNpmPackage rec { AUTHORIZED = "1"; + # `claude-code` tries to auto-update by default, this disables that functionality. + # Note that the `DISABLE_AUTOUPDATER` environment variable is not documented, so this trick may + # not continue to work. + postInstall = '' + wrapProgram $out/bin/claude \ + --set DISABLE_AUTOUPDATER 1 + ''; + passthru.updateScript = ./update.sh; meta = {