Attribute : fcitx5-with-addons missing

hey there , i m new here and i have been getting some error messages when rebuilding the home-manager

home-manager switch -b backup --impure --flake .#kenzo --show-trace

error log :

trace: warning: You are using

  Home Manager version 25.05 and
  Nixpkgs version 23.11.

Using mismatched versions is likely to cause errors and unexpected
behavior. It is therefore highly recommended to use a release of Home
Manager that corresponds with your chosen release of Nixpkgs.

If you insist then you can disable this warning by adding

  home.enableNixpkgsReleaseCheck = false;

to your configuration.

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/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:87:15:
           86|       enableParallelBuilding = true;
           87|       inherit buildCommand name;
             |               ^
           88|       passAsFile = [ "buildCommand" ]

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:44:19:
           43|       value = commonAttrs // {
           44|         outPath = builtins.getAttr outputName strict;
             |                   ^
           45|         drvPath = strict.drvPath;

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

       … while evaluating derivation 'activation-script'
         whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'text' of derivation 'activation-script'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:148:17:
          147|     runCommand name
          148|       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                 ^
          149|         passAsFile = [ "text" ];

       … while calling the 'concatStringsSep' builtin
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/home-environment.nix:682:13:
          681|           if sortedCommands ? result then
          682|             concatStringsSep "\n" (map mkCmd sortedCommands.result)
             |             ^
          683|           else

       … while calling 'mkCmd'
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/home-environment.nix:675:17:
          674|       let
          675|         mkCmd = res: ''
             |                 ^
          676|             _iNote "Activating %s" "${res.name}"

       … while evaluating the attribute 'data'
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/lib/dag.nix:89:43:
           88|     in if sorted ? result then {
           89|       result = map (v: { inherit (v) name data; }) sorted.result;
             |                                           ^
           90|     } else

       … while evaluating the attribute 'data'
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/lib/dag.nix:83:9:
           82|         name = n;
           83|         data = v.data;
             |         ^
           84|         after = v.after ++ dagBefore dag n;

       … from call site
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/lib/dag.nix:83:16:
           82|         name = n;
           83|         data = v.data;
             |                ^
           84|         after = v.after ++ dagBefore dag n;

       … while calling 'g'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/attrsets.nix:701:19:
          700|           g =
          701|             name: value:
             |                   ^
          702|             if isAttrs value && cond value

       … from call site
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/attrsets.nix:704:20:
          703|               then recurse (path ++ [name]) value
          704|               else f (path ++ [name]) value;
             |                    ^
          705|         in mapAttrs g;

       … while calling anonymous lambda
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:242:72:
          241|           # For definitions that have an associated option
          242|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          243|

       … while evaluating the attribute 'value'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:807:9:
          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

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

       … while evaluating the attribute 'mergedValue'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:842:5:
          841|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          842|     mergedValue =
             |     ^
          843|       if isDefined then

       … while evaluating a branch condition
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:843:7:
          842|     mergedValue =
          843|       if isDefined then
             |       ^
          844|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal

       … while evaluating the attribute 'values'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:836:9:
          835|       in {
          836|         values = defs''';
             |         ^
          837|         inherit (defs'') highestPrio;

       … while evaluating a branch condition
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:832:11:
          831|           # Avoid sorting if we don't have to.
          832|           if any (def: def.value._type or "" == "order") defs''.values
             |           ^
          833|           then sortProperties defs''.values

       … while calling the 'any' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:832:14:
          831|           # Avoid sorting if we don't have to.
          832|           if any (def: def.value._type or "" == "order") defs''.values
             |              ^
          833|           then sortProperties defs''.values

       … while evaluating the attribute 'values'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:935:7:
          934|     in {
          935|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          936|       inherit highestPrio;

       … while calling the 'concatMap' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:935:16:
          934|     in {
          935|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |                ^
          936|       inherit highestPrio;

       … while calling the 'concatMap' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:822:17:
          821|         # Process mkMerge and mkIf properties.
          822|         defs' = concatMap (m:
             |                 ^
          823|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:822:28:
          821|         # Process mkMerge and mkIf properties.
          822|         defs' = concatMap (m:
             |                            ^
          823|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling the 'map' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:823:11:
          822|         defs' = concatMap (m:
          823|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |           ^
          824|         ) defs;

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

       … from call site
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:823:137:
          822|         defs' = concatMap (m:
          823|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          824|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:894:25:
          893|   */
          894|   dischargeProperties = def:
             |                         ^
          895|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:895:5:
          894|   dischargeProperties = def:
          895|     if def._type or "" == "merge" then
             |     ^
          896|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:605:53:
          604|                 (n: value:
          605|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          606|                 )

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:44:19:
           43|       value = commonAttrs // {
           44|         outPath = builtins.getAttr outputName strict;
             |                   ^
           45|         drvPath = strict.drvPath;

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

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

       … while evaluating attribute 'passAsFile' of derivation 'home-manager-path'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:88:7:
           87|       inherit buildCommand name;
           88|       passAsFile = [ "buildCommand" ]
             |       ^
           89|         ++ (derivationArgs.passAsFile or []);

       … while evaluating the attribute 'passAsFile'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:5:
           75|     # XXX: The size is somewhat arbitrary
           76|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |     ^
           77|   }

       … while evaluating a branch condition
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:18:
           75|     # XXX: The size is somewhat arbitrary
           76|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |                  ^
           77|   }

       … in the argument of the not operator
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:48:
           75|     # XXX: The size is somewhat arbitrary
           76|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |                                                ^
           77|   }

       … while calling the 'lessThan' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:48:
           75|     # XXX: The size is somewhat arbitrary
           76|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |                                                ^
           77|   }

       … while calling the 'stringLength' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:21:
           75|     # XXX: The size is somewhat arbitrary
           76|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |                     ^
           77|   }

       … while calling the 'toJSON' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:58:12:
           57|             nativeBuildInputs buildInputs;
           58|     pkgs = builtins.toJSON (map (drv: {
             |            ^
           59|       paths =

       … while evaluating list element at index 47

       … while evaluating attribute 'paths'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:59:7:
           58|     pkgs = builtins.toJSON (map (drv: {
           59|       paths =
             |       ^
           60|         # First add the usual output(s): respect if user has chosen explicitly,

       … while evaluating list element at index 0
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:59:7:
           58|     pkgs = builtins.toJSON (map (drv: {
           59|       paths =
             |       ^
           60|         # First add the usual output(s): respect if user has chosen explicitly,

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:44:19:
           43|       value = commonAttrs // {
           44|         outPath = builtins.getAttr outputName strict;
             |                   ^
           45|         drvPath = strict.drvPath;

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

       … while evaluating derivation 'home-configuration-reference-manpage'
         whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'buildCommand' of derivation 'home-configuration-reference-manpage'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:87:15:
           86|       enableParallelBuilding = true;
           87|       inherit buildCommand name;
             |               ^
           88|       passAsFile = [ "buildCommand" ]

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:44:19:
           43|       value = commonAttrs // {
           44|         outPath = builtins.getAttr outputName strict;
             |                   ^
           45|         drvPath = strict.drvPath;

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

       … while evaluating derivation 'options.json'
         whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'options' of derivation 'options.json'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/nixos/lib/make-options-doc/default.nix:125:7:
          124|       ];
          125|       options = builtins.toFile "options.json"
             |       ^
          126|         (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));

       … while calling the 'toFile' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/nixos/lib/make-options-doc/default.nix:125:17:
          124|       ];
          125|       options = builtins.toFile "options.json"
             |                 ^
          126|         (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));

       … while evaluating the second argument passed to builtins.toFile

       … while calling the 'unsafeDiscardStringContext' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/nixos/lib/make-options-doc/default.nix:126:10:
          125|       options = builtins.toFile "options.json"
          126|         (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));
             |          ^
          127|       # merge with an empty set if baseOptionsJSON is null to run markdown

       … while calling the 'toJSON' builtin
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/nixos/lib/make-options-doc/default.nix:126:47:
          125|       options = builtins.toFile "options.json"
          126|         (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));
             |                                               ^
          127|       # merge with an empty set if baseOptionsJSON is null to run markdown

       … while evaluating attribute '"i18n.inputMethod.fcitx5.fcitx5-with-addons"'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/nixos/lib/make-options-doc/default.nix:94:63:
           93|
           94|   optionsNix = builtins.listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name" "visible" "internal"]; }) optionsList);
             |                                                               ^
           95|

       … while evaluating attribute 'default'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/options.nix:326:11:
          325|         // optionalAttrs (opt ? defaultText || opt ? default) {
          326|           default =
             |           ^
          327|             builtins.addErrorContext "while evaluating the ${if opt?defaultText then "defaultText" else "default value"} of option `${name}`" (

       … while evaluating the default value of option `i18n.inputMethod.fcitx5.fcitx5-with-addons`

       … from call site
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/options.nix:328:15:
          327|             builtins.addErrorContext "while evaluating the ${if opt?defaultText then "defaultText" else "default value"} of option `${name}`" (
          328|               renderOptionValue (opt.defaultText or opt.default)
             |               ^
          329|             );

       … while calling 'renderOptionValue'
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/options.nix:365:23:
          364|   */
          365|   renderOptionValue = v:
             |                       ^
          366|     if v ? _type && v ? text then v

       … while evaluating a branch condition
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/options.nix:366:5:
          365|   renderOptionValue = v:
          366|     if v ? _type && v ? text then v
             |     ^
          367|     else literalExpression (lib.generators.toPretty {

       … in the left operand of the AND (&&) operator
         at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/options.nix:366:18:
          365|   renderOptionValue = v:
          366|     if v ? _type && v ? text then v
             |                  ^
          367|     else literalExpression (lib.generators.toPretty {

       … while evaluating the attribute 'default'
         at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/i18n/input-method/fcitx5.nix:14:9:
           13|         type = types.package;
           14|         default = pkgs.libsForQt5.fcitx5-with-addons;
             |         ^
           15|         example = literalExpression "pkgs.kdePackages.fcitx5-with-addons";

       error: attribute 'fcitx5-with-addons' missing
       at /nix/store/294lx1i4ifrrrdkbvlrvd3c7qwpl2p70-source/modules/i18n/input-method/fcitx5.nix:14:19:
           13|         type = types.package;
           14|         default = pkgs.libsForQt5.fcitx5-with-addons;
             |                   ^
           15|         example = literalExpression "pkgs.kdePackages.fcitx5-with-addons";

i m confused why hm is asking for fcixt5 , i have not mentioned it anywhere in the config files , i also tried :

nix why-depends nixpkgs#home-manager nixpkgs#fcitx5-with-addons

output says

'flake:nixpkgs#home-manager' does not depend on 'flake:nixpkgs#fcitx5-with-addons'

i dont know if it is being fetched as a dependency or what but i am not able to get through it …

i tried installing fctix5-with-addons , the build fails and i m not able to resolve the situation

here are the config files :
(HyprNix/nixOS/nix-config at main · SpitfireGG/HyprNix · GitHub)

Well you have a couple problems:

  • You’re mixing stable with unstable, which is never supported.
  • You’re mixing stable nixpkgs with unstable HM, which is just incorrect:
    hm.url = "github:nix-community/home-manager/master";
        pkgs = import nixpkgs-stable {
          system = "x86_64-linux";
          config = { allowUnfree = true; };
        };
  • You’re using 23.11 for your stable, which has been dead for over a year now.
  • You’re using the release-* branch, which you should also never use - only use the nixos-* branches.

Simple (and correct) fix is to switch your nixpkgs that you’re using to unstable, to match your NixOS config, and get rid of the stable nixpkgs input.

diff --git a/nixOS/nix-config/flake.nix b/nixOS/nix-config/flake.nix
index 16b7ece..6f224a2 100644
--- a/nixOS/nix-config/flake.nix
+++ b/nixOS/nix-config/flake.nix
@@ -4,8 +4,8 @@
 
   inputs = {
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
-    nixpkgs-stable.url = "github:NixOS/nixpkgs/release-23.11";
     hm.url = "github:nix-community/home-manager/master";
+    hm.inputs.nixpkgs.follows = "nixpkgs";
     nix-colors.url = "github:misterio77/nix-colors";
     anyrun.url = "github:Kirottu/anyrun";
     ags.url = "github:ozwaldorf/ags";
@@ -26,7 +26,7 @@
     };
     homeConfigurations = {
       kenzo = hm.lib.homeManagerConfiguration {
-        pkgs = import nixpkgs-stable {
+        pkgs = import nixpkgs {
           system = "x86_64-linux";
           config = { allowUnfree = true; };
         };
1 Like

thank you @waffle8946

i never knew about that, i have not used nixos for a very long time , this is my second attempt with nixos and i am still learning

this has fixed the issue and i have learned something new too

thanks !!