diff options
Diffstat (limited to 'configs')
| -rw-r--r-- | configs/hermes.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configs/hermes.nix b/configs/hermes.nix index 80eab2f..330641b 100644 --- a/configs/hermes.nix +++ b/configs/hermes.nix @@ -15,6 +15,23 @@ let }}/claude-subscription-directsdk $out ''; + # 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"; + src = pkgs.fetchurl { + url = "https://downloads.claude.ai/claude-code-releases/${version}/linux-x64/claude.zst"; + sha256 = "10f24c9cfcbf3c586e6d281815dce9b561eb8acc6b8c0f26b8f0af5e56fa7605"; + }; + nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.zstd ]; + # installPhase installs $src as is. + preInstall = '' + unzstd -q $src -o claude + src=$PWD/claude + ''; + }); + # Root's way (back) into hermes' tmux. hermes-attach = pkgs.writeShellScriptBin "hermes-attach" '' exec ${tmux} attach -t hermes @@ -94,7 +111,7 @@ in default = "opus"; }; # The login is in ~/.claude, i.e. in stateDir. - extraPackages = [ pkgs.claude-code ]; + extraPackages = [ claude-code ]; }; # hermes for hermes' shells, too, like in a new window of the tmux. users.users.hermes.packages = [ config.services.hermes-agent.package ]; |
