From a44ce8a8966f206b47f2050beefe939161664fcb Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 05:21:29 +0000 Subject: 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. --- configs/hermes.nix | 17 ++++++++--------- 1 file 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 ''; }); -- cgit v1.3.1