Error: attribute 'vscode-langservers-extracted' missing when rebuilding NixOS

So, today, I tried to update NixOS by running

$ nix flakes update
$ sudo nixos-rebuild switch

in my configuration config. However, I think there was a major change in Nixpkgs (I follow nixpkgs-unstable with a seperate Nix flake input). Now, whenever I try to rebuild NixOS, it prints this error message:

error: attribute 'vscode-langservers-extracted' missing

       at /nix/store/wvs0lrqqy6fc4qjl4vj39fz3n70wcmb7-source/plugins/lsp/language-servers/default.nix:40:17:

           39|       description = "Enable cssls, for CSS";
           40|       package = pkgs.vscode-langservers-extracted;
             |                 ^
           41|       cmd = cfg: ["${cfg.package}/bin/vscode-css-language-server" "--stdio"];
(use '--show-trace' to show detailed location information)

Do you have any idea on how to fix this?
Thanks! :slight_smile:

Still exists on 3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f current nixos-unstable

nix-repl> vscode-langservers-extracted
«derivation /nix/store/q6v7hl17bnp5wklcgks81ml02cba8f99-vscode-langservers-extracted-4.7.0.drv»

Hmm… I upgraded to NixOS unstable and no errors were involved… Maybe some rogue commit on the 23.05 branch?

vscode-langservers-extracted was added top-level only 2 weeks ago vscode-langservers-extracted: use buildNpmPackage · NixOS/nixpkgs@e45eeed · GitHub so it’s not in 23.05

Ahh… I know now! It’s because NixOS unstable had that langserver while 23.05 did not and so there was a package conflict or something.