Fcitx5 build in NixOS: error: attribute 'attrsets' missing

I ran sudo nixos-rebuild switch --upgrade on my machine, today. I run this command almost every day, and I ran it yesterday without issue. My machine did not update to the latest version - it said:

error: attribute ‘attrsets’ missing

   at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/i18n/input-method/fcitx5.nix:126:7:

      125|       in
      126|       lib.attrsets.mergeAttrsList [
         |       ^
      127|         (lib.optionalFile "config" (lib.generators.toINI { }) cfg.settings.globalOptions)

I have configured fcitx5 to switch between the Japanese IME “anthy” and English on my machine. I’m also using “use-xdg-base-directories = true”, if that matters.

Edit: corrected myself on the timing of the update. I misspoke and implied my update was broken yesterday, instead of today.

Fixed in nixos/fcitx5: fix evaluation by NickCao · Pull Request #338621 · NixOS/nixpkgs · GitHub, just wait

1 Like