NixOS extensions From Vscode Marketplace do not update

Hi there!

I have a list of extensions:


vscodeMarketplaceExtensions = [
    {
      name = "dependi";
      publisher = "fill-labs";
      version = "0.7.10";
      sha256 = "sha256-m8W21ztTmEOjDI1KCymeBgQzg9jdgKG9dCFp+U1D818=";
    }
    {
      name = "restore-terminals";
      publisher = "EthanSK";
      version = "1.1.8";
      sha256 = "sha256-pZK/QNomQoFRsL6LRIKvWQj8/SYo2ZdVU47Gsmb9MXo=";
    }
    {
      name = "vscode-tailwindcss";
      publisher = "bradlc";
      version = "0.11.61";
      sha256 = "sha256-qnW3v6UziBQjmOxYozlrM0Giyx7dK/moiw0W++THbkQ=";
    }
];

This list is used by the system packages.

systemPackages = with pkgs; [
      (vscode-with-extensions.override {
        vscode = vscode;
        vscodeExtensions = with vscode-extensions;
          vscodeExtensions
          ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace vscodeMarketplaceExtensions;
      })

      (vscode-with-extensions.override {
        vscode = unstable.vscodium;
        vscodeExtensions = with vscode-extensions;
          vscodeExtensions
          ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace vscodeMarketplaceExtensions;
      })
];

Now since some recent update, I can put whatever I want into the version or sha fields but when running rebuild it does not update or complain about the invalid sha sums.

I even tried removing them, cleaning up nix garbage and then adding them back again but without success.

Full config can be found here: Paul Colin Hennig / nixos-0 · GitLab

Thank you in advance!

You need to set the hashes to empty string.

1 Like