nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

vscode-extensions.anthropic-claude-code: wrong sha256

Open sarahlament opened this issue 1 year ago • 1 comments

Nixpkgs version

  • Unstable (25.11)

Describe the bug

When updating the Claude Code extension for VSCode, the provided hash does not match what is expected, causing an error when running nixos-rebuild switch --flake .# --sudo

Steps to reproduce

  • add environment.systemPackages = [ pkgs.vscode-extensions.anthropic-claude-code ]; to your confiuration
  • update

Expected behaviour

package updates sucessfully

Screenshots

No response

Relevant log output

error: hash mismatch in fixed-output derivation '/nix/store/b19sz34r3l7c5kp7mhaygg4w2iasfpb2-anthropic-claude-code.zip.drv':
         specified: sha256-2wvViSXJQO5h8WGYqXpn+gRQ8Tzfb9O+MoJBTLaevUw=
            got:    sha256-Do9fXSw7nK7Rk1qGyTceFUDLWnlmCiHYnqxTBnY6feY=
error: Cannot build '/nix/store/gqvrn5sw423n09n55nfrflcswqqr4ld5-vscode-extension-anthropic-claude-code-2.0.47.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/d73c33hbdfk004acr7b6ccfv903i7kb8-vscode-extension-anthropic-claude-code-2.0.47
error: Cannot build '/nix/store/qb48fq58p0hmp23y91ppbkk3cp3saq43-system-path.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/w8m3lzy46x7aavk2p3vaph5dbj5pq4zz-system-path
error: Cannot build '/nix/store/36dh1p9y5lhmxc6d6z859ly6fsz756n5-nixos-system-REDACTED-25.11.20251120.117cc7f.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/5zq762wdr4hgb2kbdbmk4pwvk9qjkgf3-nixos-system-LamentOS-25.11.20251120.117cc7f

Additional context

I was able to create a local overlay and provide the correct hash easily, so it's not that big of a deal, just a minor inconvenience.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.17.8-zen1, NixOS, 25.11 (Xantusia), 25.11.20251120.117cc7f
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.2
  • nixpkgs: /nix/store/qkph2sflcz4i39krcsk6zjk16jr9w3s4-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

sarahlament avatar Nov 23 '25 08:11 sarahlament

updated in #463699

ghost avatar Nov 23 '25 10:11 ghost