NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.46k stars 13.66k forks source link

Build failure: python312Packages.powerline #326151

Open mudrii opened 2 months ago

mudrii commented 2 months ago

Describe the bug

A clear and concise description of what the bug is.

Issue with system update with darwin-rebuild switch --flake ....

Steps To Reproduce

Steps to reproduce the behavior:

  1. run darwin-rebuild switch --flake ..... for system update

Expected behavior

A clear and concise description of what you expected to happen. System to be updated

Screenshots

If applicable, add screenshots to help explain your problem.

Configuration in flakes.nix

  inputs = {
    # called derivations that say how to build software.
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; # nixos-23.11

    # Manages configs links things into your home directory
    home-manager.url = "github:nix-community/home-manager/master";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";

    # Controls system level software and settings including fonts
    darwin.url = "github:lnl7/nix-darwin";
    darwin.inputs.nixpkgs.follows = "nixpkgs";
  };

Full trace

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'darwin-system-24.11.20240710.16e401f+darwin4.cf297a8'
         whose name attribute is located at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20240710.16e401f+darwin4.cf297a8'

         at /nix/store/v4hf9qy9phyn2xfyxv0c8ah09i3cafxf-source/modules/system/default.nix:95:7:

           94|
           95|       activationScript = cfg.activationScripts.script.text;
             |       ^
           96|       activationUserScript = cfg.activationScripts.userScript.text;

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `system.activationScripts.script.text':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:836:28:

          835|         # Process mkMerge and mkIf properties.
          836|         defs' = concatMap (m:
             |                            ^
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/v4hf9qy9phyn2xfyxv0c8ah09i3cafxf-source/modules/system/activation-scripts.nix':

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:837:128:

          836|         defs' = concatMap (m:
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          838|         ) defs;

       … while calling 'dischargeProperties'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:908:25:

          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `system.activationScripts.postActivation.text':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:836:28:

          835|         # Process mkMerge and mkIf properties.
          836|         defs' = concatMap (m:
             |                            ^
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `<unknown-file>':

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:837:128:

          836|         defs' = concatMap (m:
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          838|         ) defs;

       … while calling 'dischargeProperties'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:908:25:

          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/nix-darwin/default.nix:16:36:

           15|       system.activationScripts.postActivation.text = concatStringsSep "\n"
           16|         (mapAttrsToList (username: usercfg: ''
             |                                    ^
           17|           echo Activating home-manager configuration for ${username}

       … while evaluating derivation 'activation-mudrii'
         whose name attribute is located at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'text' of derivation 'activation-mudrii'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/build-support/trivial-builders/default.nix:103:16:

          102|       ({
          103|         inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                ^
          104|         passAsFile = [ "text" ]

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

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       … while evaluating derivation 'home-manager-files'
         whose name attribute is located at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-files'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/files.nix:353:28:

          352|       '' + concatStrings (
          353|         mapAttrsToList (n: v: ''
             |                            ^
          354|           insertFile ${

       … from call site

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/files.nix:355:13:

          354|           insertFile ${
          355|             escapeShellArgs [
             |             ^
          356|               (sourceStorePath v)

       … while calling 'concatMapStringsSep'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/strings.nix:116:5:

          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |     ^
          117|

       … while calling 'escapeShellArg'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/strings.nix:454:20:

          453|   */
          454|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                    ^
          455|

       … from call site

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/files.nix:356:16:

          355|             escapeShellArgs [
          356|               (sourceStorePath v)
             |                ^
          357|               v.target

       … while calling 'sourceStorePath'

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/files.nix:15:21:

           14|
           15|   sourceStorePath = file:
             |                     ^
           16|     let

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `home-manager.users.mudrii.home.file."/Users/mudrii/.config/tmux/tmux.conf".source':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:836:28:

          835|         # Process mkMerge and mkIf properties.
          836|         defs' = concatMap (m:
             |                            ^
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/files.nix':

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:837:128:

          836|         defs' = concatMap (m:
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          838|         ) defs;

       … while calling 'dischargeProperties'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:908:25:

          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `home-manager.users.mudrii.home.file."/Users/mudrii/.config/tmux/tmux.conf".text':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:836:28:

          835|         # Process mkMerge and mkIf properties.
          836|         defs' = concatMap (m:
             |                            ^
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/misc/xdg.nix':

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:837:128:

          836|         defs' = concatMap (m:
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          838|         ) defs;

       … while calling 'dischargeProperties'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:908:25:

          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `home-manager.users.mudrii.xdg.configFile."tmux/tmux.conf".text':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:858:17:

          857|       if isDefined then
          858|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                 ^
          859|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:858:22:

          857|       if isDefined then
          858|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                      ^
          859|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while calling 'check'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/types.nix:744:15:

          743|       descriptionClass = "conjunction";
          744|       check = x: x == null || elemType.check x;
             |               ^
          745|       merge = loc: defs:

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1205:18:

         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/attrsets.nix:1208:18:

         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:254:72:

          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the option `home-manager.users.mudrii.programs.tmux.extraConfig':

       … while calling anonymous lambda

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:836:28:

          835|         # Process mkMerge and mkIf properties.
          836|         defs' = concatMap (m:
             |                            ^
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/wwss10pm1f7m491mbc2m2ssjwg2cic8z-source/modules/home-manager/dotfiles/tmux.nix':

       … from call site

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:837:128:

          836|         defs' = concatMap (m:
          837|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          838|         ) defs;

       … while calling 'dischargeProperties'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/lib/modules.nix:908:25:

          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while evaluating derivation 'python3.12-powerline-2.8.3'
         whose name attribute is located at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'python3.12-powerline-2.8.3'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:386:7:

          385|       depsHostHostPropagated      = elemAt (elemAt propagatedDependencies 1) 0;
          386|       propagatedBuildInputs       = elemAt (elemAt propagatedDependencies 1) 1;
             |       ^
          387|       depsTargetTargetPropagated  = elemAt (elemAt propagatedDependencies 2) 0;

       … while evaluating derivation 'python3.12-python-hglib-2.6.2'
         whose name attribute is located at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-python-hglib-2.6.2'

         at /nix/store/27wfk29fs9kym2vkwhqhi24xhv6ib56n-source/pkgs/stdenv/generic/make-derivation.nix:376:7:

          375|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          376|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          377|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

       error: nose-1.3.7 not supported for interpreter python3.12

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.5.0, macOS 14.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.4`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

DamienCassou commented 2 months ago

Same problem with ledger-autosync.

DamienCassou commented 2 months ago

Closing in favor of https://github.com/NixOS/nixpkgs/pull/325968

mudrii commented 1 month ago

After more then two weeks seems issue still pending to be fixed

mudrii commented 1 month ago

hopefully with last patch https://github.com/NixOS/nixpkgs/pull/330739/commits/b7983437f99c045611fafa18c061348e001b45f8

Issue will be solved after a month