summaryrefslogtreecommitdiffstats
path: root/configs/hermes.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/hermes.nix')
-rw-r--r--configs/hermes.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/configs/hermes.nix b/configs/hermes.nix
index 330641b..d1590fc 100644
--- a/configs/hermes.nix
+++ b/configs/hermes.nix
@@ -16,19 +16,18 @@ let
'';
# The plugin's Claude models need claude 2.1.280 or newer; nixos-26.05
- # has 2.1.223. Version and checksum from nixpkgs master's manifest,
- # whose release binaries are zstd-compressed now; x86_64-linux only.
- claude-code = pkgs.claude-code.overrideAttrs (old: rec {
- version = "2.1.328";
+ # has 2.1.223. From npm's platform package, which has the plain binary
+ # and an integrity hash; x86_64-linux only, like the package.
+ claude-code = pkgs.claude-code.overrideAttrs (_: rec {
+ version = "2.1.329";
src = pkgs.fetchurl {
- url = "https://downloads.claude.ai/claude-code-releases/${version}/linux-x64/claude.zst";
- sha256 = "10f24c9cfcbf3c586e6d281815dce9b561eb8acc6b8c0f26b8f0af5e56fa7605";
+ url = "https://registry.npmjs.org/@anthropic-ai/claude-code-linux-x64/-/claude-code-linux-x64-${version}.tgz";
+ hash = "sha512-+n4lu1ubYAp02Y0X/MAUnxw9yY6SHHZ77F+IoW+V0wVoFuiI9opdH6gofjf14gXJCEYMTNpks7Gn1i8XZTKAWA==";
};
- nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.zstd ];
# installPhase installs $src as is.
preInstall = ''
- unzstd -q $src -o claude
- src=$PWD/claude
+ tar -xzf $src package/claude
+ src=$PWD/package/claude
'';
});