diff options
| author | tv <tv@krebsco.de> | 2026-11-20 05:21:29 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 06:32:11 +0100 |
| commit | a44ce8a8966f206b47f2050beefe939161664fcb (patch) | |
| tree | 58cbd615f1f24804437b6e2d9b0b9a87225156f7 /configs/hermes.nix | |
| parent | 2bc6e97500fc5662027f816ae66895917229fef0 (diff) | |
configs/hermes: claude 2.1.329, from npm's platform package
2.1.329 isn't in nixpkgs master's manifest yet. npm's platform package
@anthropic-ai/claude-code-linux-x64 has the release's plain binary, and
the registry gives its integrity hash, so take it from there: no zstd,
and no checksum to copy from elsewhere.
Diffstat (limited to 'configs/hermes.nix')
| -rw-r--r-- | configs/hermes.nix | 17 |
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 ''; }); |
