Package name has changed

Hello,
I ran a ‘nix flake update’ and then ran home-manager switch --flake . and now I’m getting this error:

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/c9wv7i0af6mysmy65x6nvyfw5izzxv4g-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/c9wv7i0af6mysmy65x6nvyfw5izzxv4g-source/pkgs/build-support/trivial-builders/default.nix:59:17:
           58|         enableParallelBuilding = true;
           59|         inherit buildCommand name;
             |                 ^
           60|         passAsFile = [ "buildCommand" ]

       … while evaluating the option `home.activation.installPackages.data':

       … while evaluating definitions from `/nix/store/ipgxl36m0fp9mkwvfarfk6ypqva14fkp-source/modules/home-environment.nix':

       … while evaluating the default value of option `plugins.lsp.servers.bufls.cmd`

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: 'buf-language-server' was removed as its development has moved to the 'buf' package

How do I switch to ‘buf’ from ‘buf-language-server’? Apologies for the n00b question.

Remove buf-language-server from your list of packages and place buf in there instead. You’ll then need to configure your editor to use buf instread of buf-language-server.

Thanks for replying. buf-language-server isn’t listed anywhere in my configs

Looks like it’s getting pulled in there by this:
plugins.lsp.servers.bufls.cmd

Thanks. I’ll try searching for it.

Hey! I have the exact same issue and as I am still new to NixOS I am struggling :rofl:
Did you find a way to make the change?
On my end, it is related to my nixvim install that I added to my conf. Unfortunately, I cannot change the package name, it is probably part of the nixvim module.
How do you proceed when it happens ? Do you need to fork the module and change the whole thing manually on your computer ?

Sorry for newbie question :slight_smile: I kinda like the idea of NixOS but the learning curve is … ouch :smiley:

Given plugins/lsp: remove buf-language-server by anthonycicc · Pull Request #2526 · nix-community/nixvim · GitHub, updating your nixvim should fix it.