nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Build failure with nose python 3.12

Open BhasherBEL opened this issue 2 years ago • 23 comments

Steps To Reproduce

Steps to reproduce the behavior:

  1. build spotdl/asciinema/binwalk/gpodder/autotiling/...

Build log

error:
       … while calling the 'head' builtin

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/lib/modules.nix:821:9:

          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

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

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

Additional context

"nixpkgs": {
  "locked": {
    "lastModified": 1720031269,
    "narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=",
    "owner": "nixos",
    "repo": "nixpkgs",
    "rev": "9f4128e00b0ae8ec65918efeba59db998750ead6",
    "type": "github"
  },
  "original": {
    "owner": "nixos",
    "ref": "nixos-unstable",
    "repo": "nixpkgs",
    "type": "github"
  }
},

Notify maintainers

@dotlambda

Metadata

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

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.36, NixOS, 24.11 (Vicuna), 24.11.20240708.655a58a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - channels(root): `"home-manager-23.11.tar.gz, nixos-23.11"`
 - nixpkgs: `/nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source`

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

BhasherBEL avatar Jul 08 '24 21:07 BhasherBEL

I am getting the same issue from binwalk after updating flake inputs:

… while evaluating derivation 'python3.12-binwalk-2.3.4'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-binwalk-2.3.4'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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

the same error also occurs when trying to install the package xsser or pwndbg. So it seems to affect a lot of packages using python.

Mag1cByt3s avatar Jul 08 '24 22:07 Mag1cByt3s

Also having this, I do not have Spotdl installed however. I think it might be a underlying issue with some dependency

nonetrix avatar Jul 08 '24 22:07 nonetrix

Got the same error with gpodder

piotr152 avatar Jul 08 '24 22:07 piotr152

Same with blender It seems multiple builds are failing here

AwesomeQubic avatar Jul 08 '24 22:07 AwesomeQubic

Same with blender It seems multiple builds are failing here

I also had issue with Blender-hip but different error I am not sure if it is related or not it was issue with OpenUSD which is NVIDIAs weird model format or something(?)

nonetrix avatar Jul 08 '24 23:07 nonetrix

getting the same issue for asciinema-2.4.0 & autotiling

asciinema logs:

error:
       … while evaluating derivation 'asciinema-2.4.0'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'asciinema-2.4.0'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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

autotiling/i3ipc

… while evaluating derivation 'autotiling-1.9.3'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'autotiling-1.9.3'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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-i3ipc-2.2.1'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'python3.12-i3ipc-2.2.1'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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-xlib-0.33'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-xlib-0.33'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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

sreedevk avatar Jul 09 '24 00:07 sreedevk

Same issue for neofetch and blender.

humemm avatar Jul 09 '24 00:07 humemm

I fixed neofetch in https://github.com/NixOS/nixpkgs/pull/325676 . The PR just replaces the nose package (unsupported in python 3.12) with pynose (https://pypi.org/project/pynose/) .

StarGate01 avatar Jul 09 '24 00:07 StarGate01

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/error-nose-1-3-7-not-supported-for-interpreter-python3-12/48703/2

nixos-discourse avatar Jul 09 '24 01:07 nixos-discourse

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/error-nose-1-3-7-not-supported-for-interpreter-python3-12/48703/4

nixos-discourse avatar Jul 09 '24 02:07 nixos-discourse

Same error with plex-mpv-shim

Created https://github.com/NixOS/nixpkgs/pull/325746 for plex-mpv-shim

EDIT: appears to be fixed on master already

khaneliman avatar Jul 09 '24 04:07 khaneliman

1766c845a88dd9d4f303b8c1f639e9f2ac2aa4a2 seems to be the latest working commit (one before https://github.com/NixOS/nixpkgs/commit/737b5cd4f2f0113727312a12b4dfceee877a88c3)

imnotpoz avatar Jul 09 '24 08:07 imnotpoz

Same with plasma-hud and gnuradio for library thrift.

emberdart avatar Jul 09 '24 11:07 emberdart

upd: also yep, neofetch and asciinema is also have this issue

hi! same think, this time with keyd, im not a big expert on flake and nix, but maybe there some simple fix like to pin old python version or something?


       … while evaluating derivation 'keyd-application-mapper-2.4.3'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'keyd-application-mapper-2.4.3'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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-xlib-0.33'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-xlib-0.33'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-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

askaramirov avatar Jul 09 '24 11:07 askaramirov

Binwalk is also having this issue:

building the configuration in /mnt/etc/nixos/configuration.nix...
error:
       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/default.nix:17:12:
           16|
           17|   system = eval.config.system.build.toplevel;
             |            ^
           18|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1571:24:
         1570|     let f = attrPath:
         1571|       zipAttrsWith (n: values:
             |                        ^
         1572|         let here = attrPath ++ [n]; in

       … while calling the 'head' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1575:11:
         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:821:9:
          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

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

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:857:7:
          856|     mergedValue =
          857|       if isDefined then
             |       ^
          858|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal

       … while evaluating the attribute 'values'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:850:9:
          849|       in {
          850|         values = defs''';
             |         ^
          851|         inherit (defs'') highestPrio;

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

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

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

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

       … while calling the 'concatMap' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:836:17:
          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 calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 calling the 'map' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:837:11:
          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 evaluating definitions from `/mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix':

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:908:25:
          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:909:5:
          908|   dischargeProperties = def:
          909|     if def._type or "" == "merge" then
             |     ^
          910|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:619:53:
          618|                 (n: value:
          619|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          620|                 )

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix:71:12:
           70|   # Replace runtime dependencies
           71|   system = foldr ({ oldDependency, newDependency }: drv:
             |            ^
           72|       pkgs.replaceDependency { inherit oldDependency newDependency drv; }

       … while calling 'foldr'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:121:20:
          120|   */
          121|   foldr = op: nul: list:
             |                    ^
          122|     let

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:128:8:
          127|         else op (elemAt list n) (fold' (n + 1));
          128|     in fold' 0;
             |        ^
          129|

       … while calling 'fold''
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:124:15:
          123|       len = length list;
          124|       fold' = n:
             |               ^
          125|         if n == len

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix:68:10:
           67|     then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
           68|     else showWarnings config.warnings baseSystem;
             |          ^
           69|

       … while calling 'showWarnings'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/trivial.nix:927:28:
          926|
          927|   showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings;
             |                            ^
          928|

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/trivial.nix:927:33:
          926|
          927|   showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings;
             |                                 ^
          928|

       … while calling 'foldr'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:121:20:
          120|   */
          121|   foldr = op: nul: list:
             |                    ^
          122|     let

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:128:8:
          127|         else op (elemAt list n) (fold' (n + 1));
          128|     in fold' 0;
             |        ^
          129|

       … while calling 'fold''
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:124:15:
          123|       len = length list;
          124|       fold' = n:
             |               ^
          125|         if n == len

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix:48:16:
           47|   # makes it bootable. See `activatable-system.nix`.
           48|   baseSystem = pkgs.stdenvNoCC.mkDerivation ({
             |                ^
           49|     name = "nixos-system-${config.system.name}-${config.system.nixos.label}";

       … while calling 'mkDerivation'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:46:5:
           45|   mkDerivation =
           46|     fnOrAttrs:
             |     ^
           47|       if builtins.isFunction fnOrAttrs

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:47:7:
           46|     fnOrAttrs:
           47|       if builtins.isFunction fnOrAttrs
             |       ^
           48|       then makeDerivationExtensible fnOrAttrs

       … while calling the 'isFunction' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:47:10:
           46|     fnOrAttrs:
           47|       if builtins.isFunction fnOrAttrs
             |          ^
           48|       then makeDerivationExtensible fnOrAttrs

       … in the right operand of the update (//) operator
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix:60:5:
           59|     inherit (config.system) extraDependencies;
           60|   } // config.system.systemBuilderArgs);
             |     ^
           61|

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/top-level.nix:60:8:
           59|     inherit (config.system) extraDependencies;
           60|   } // config.system.systemBuilderArgs);
             |        ^
           61|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:821:9:
          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.systemBuilderArgs':

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

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:858:59:
          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 'merge'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:582:20:
          581|       check = isAttrs;
          582|       merge = loc: defs:
             |                    ^
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:

       … while calling the 'mapAttrs' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:583:9:
          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |         ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:583:35:
          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                   ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … while calling 'filterAttrs'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:646:5:
          645|     pred:
          646|     set:
             |     ^
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));

       … while calling the 'listToAttrs' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:5:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |     ^
          648|

       … while calling the 'concatMap' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:18:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                  ^
          648|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:29:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                             ^
          648|

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:59:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                                                           ^
          648|

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:62:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                                                              ^
          648|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:583:51:
          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                                   ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:647:43:
          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                                           ^
          648|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:583:86:
          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                                                                      ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … while evaluating the attribute 'optionalValue'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:868:5:
          867|
          868|     optionalValue =
             |     ^
          869|       if isDefined then { value = mergedValue; }

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:869:7:
          868|     optionalValue =
          869|       if isDefined then { value = mergedValue; }
             |       ^
          870|       else {};

       (8 duplicate frames omitted)

       … while evaluating definitions from `/mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activatable-system.nix':

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:908:25:
          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:909:5:
          908|   dischargeProperties = def:
          909|     if def._type or "" == "merge" then
             |     ^
          910|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:587:60:
          586|           # Push down position info.
          587|           (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs)));
             |                                                            ^
          588|       emptyValue = { value = {}; };

       … while evaluating the attribute 'system.activationScripts.script'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:133:9:
          132|       apply = set: set // {
          133|         script = systemActivationScript set false;
             |         ^
          134|       };

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:133:18:
          132|       apply = set: set // {
          133|         script = systemActivationScript set false;
             |                  ^
          134|       };

       … while calling 'systemActivationScript'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:20:33:
           19|
           20|   systemActivationScript = set: onlyDry: let
             |                                 ^
           21|     set' = mapAttrs (_: v: if isString v then (noDepEntry v) // { supportsDryActivation = false; } else v) set;

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:49:9:
           48|
           49|       ${textClosureMap id (withDrySnippets) (attrNames withDrySnippets)}
             |         ^
           50|

       … while calling 'textClosureMap'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings-with-deps.nix:75:35:
           74|
           75|   textClosureMap = f: predefined: names:
             |                                   ^
           76|     concatStringsSep "\n" (map f (textClosureList predefined names));

       … while calling the 'concatStringsSep' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings-with-deps.nix:76:5:
           75|   textClosureMap = f: predefined: names:
           76|     concatStringsSep "\n" (map f (textClosureList predefined names));
             |     ^
           77|

       … while calling 'id'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/trivial.nix:36:8:
           35|   */
           36|   id = x: x;
             |        ^
           37|

       … while evaluating the attribute 'text'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:9:5:
            8|   addAttributeName = mapAttrs (a: v: v // {
            9|     text = ''
             |     ^
           10|       #### Activation script snippet ${a}:

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/activation/activation-script.nix:12:9:
           11|       _localstatus=0
           12|       ${v.text}
             |         ^
           13|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:821:9:
          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

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

       (10 duplicate frames omitted)

       … while evaluating definitions from `/mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc-activation.nix':

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:908:25:
          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:909:5:
          908|   dischargeProperties = def:
          909|     if def._type or "" == "merge" then
             |     ^
          910|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:619:53:
          618|                 (n: value:
          619|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          620|                 )

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc-activation.nix:11:46:
           10|       system.activationScripts.etc =
           11|         lib.stringAfter [ "users" "groups" ] config.system.build.etcActivationCommands;
             |                                              ^
           12|     }

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1571:24:
         1570|     let f = attrPath:
         1571|       zipAttrsWith (n: values:
             |                        ^
         1572|         let here = attrPath ++ [n]; in

       … while calling the 'head' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1575:11:
         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:607:29:
          606|       merge = loc: defs:
          607|         zipAttrsWith (name: defs:
             |                             ^
          608|           let merged = mergeDefinitions (loc ++ [name]) elemType defs;

       … while evaluating the attribute 'optionalValue.value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:868:5:
          867|
          868|     optionalValue =
             |     ^
          869|       if isDefined then { value = mergedValue; }

       (9 duplicate frames omitted)

       … while evaluating definitions from `/mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc.nix':

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:908:25:
          907|   */
          908|   dischargeProperties = def:
             |                         ^
          909|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:909:5:
          908|   dischargeProperties = def:
          909|     if def._type or "" == "merge" then
             |     ^
          910|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:613:58:
          612|         # Push down position info.
          613|         (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs);
             |                                                          ^
          614|       emptyValue = { value = {}; };

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:273:39:
          272|         then value
          273|         else { ${elemAt attrPath n} = atDepth (n + 1); };
             |                                       ^
          274|     in atDepth 0;

       … while calling 'atDepth'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:270:17:
          269|       len = length attrPath;
          270|       atDepth = n:
             |                 ^
          271|         if n == len

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:619:53:
          618|                 (n: value:
          619|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          620|                 )

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

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

       … while evaluating derivation 'etc'
         whose name attribute is located at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'buildCommand' of derivation 'etc'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/build-support/trivial-builders/default.nix:68:17:
           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                 ^
           69|         passAsFile = [ "buildCommand" ]

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc.nix:54:7:
           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |       ^
           55|       "makeEtcEntry"

       … while calling 'concatMapStringsSep'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:116:5:
          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |     ^
          117|

       … while calling the 'concatStringsSep' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:116:11:
          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |           ^
          117|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc.nix:54:33:
           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |                                 ^
           55|       "makeEtcEntry"

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc.nix:54:43:
           53|     mkdir -p "$out/etc"
           54|     ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
             |                                           ^
           55|       "makeEtcEntry"

       … while calling 'concatMapStringsSep'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:116:5:
          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |     ^
          117|

       … while calling the 'concatStringsSep' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:116:11:
          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |           ^
          117|

       … while calling 'escapeShellArg'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:454:20:
          453|   */
          454|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                    ^
          455|

       … while calling the 'replaceStrings' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:454:29:
          453|   */
          454|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                             ^
          455|

       … while evaluating the third argument passed to builtins.replaceStrings

       … while calling the 'toString' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/strings.nix:454:61:
          453|   */
          454|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                                                             ^
          455|

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/nixos/modules/system/etc/etc.nix:57:10:
           56|       # Force local source paths to be added to the store
           57|       "${etcEntry.source}"
             |          ^
           58|       etcEntry.target

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:821:9:
          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `environment.etc.dbus-1.source':

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

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:858:9:
          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 the 'all' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:858:12:
          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 anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:534:15:
          533|       descriptionClass = "noun";
          534|       check = x: isStringLike x && builtins.substring 0 1 (toString x) == "/";
             |               ^
          535|       merge = mergeEqualOption;

       … in the right operand of the AND (&&) operator
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:534:33:
          533|       descriptionClass = "noun";
          534|       check = x: isStringLike x && builtins.substring 0 1 (toString x) == "/";
             |                                 ^
          535|       merge = mergeEqualOption;

       … while calling the 'substring' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:534:36:
          533|       descriptionClass = "noun";
          534|       check = x: isStringLike x && builtins.substring 0 1 (toString x) == "/";
             |                                    ^
          535|       merge = mergeEqualOption;

       … while calling the 'toString' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:534:60:
          533|       descriptionClass = "noun";
          534|       check = x: isStringLike x && builtins.substring 0 1 (toString x) == "/";
             |                                                            ^
          535|       merge = mergeEqualOption;

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

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

       … while evaluating derivation 'dbus-1'
         whose name attribute is located at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'serviceDirectories' of derivation 'dbus-1'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/libraries/dbus/make-dbus-conf.nix:18:13:
           17|   {
           18|     inherit serviceDirectories suidHelper apparmor;
             |             ^
           19|     preferLocalBuild = true;

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/types.nix:552:14:
          551|       merge = loc: defs:
          552|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |              ^
          553|           imap1 (m: def':

       … while evaluating the attribute 'value'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/modules.nix:869:27:
          868|     optionalValue =
          869|       if isDefined then { value = mergedValue; }
             |                           ^
          870|       else {};

       (10 duplicate frames omitted)

       … while evaluating derivation 'system-path'
         whose name attribute is located at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'passAsFile' of derivation 'system-path'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/build-support/trivial-builders/default.nix:69:9:
           68|         inherit buildCommand name;
           69|         passAsFile = [ "buildCommand" ]
             |         ^
           70|           ++ (derivationArgs.passAsFile or [ ]);

       … while evaluating the attribute 'passAsFile'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 66

       … while evaluating attribute 'paths'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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 /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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>:19:19:
           18|       value = commonAttrs // {
           19|         outPath = builtins.getAttr outputName strict;
             |                   ^
           20|         drvPath = strict.drvPath;

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

       … while evaluating derivation 'python3-3.12.4-env'
         whose name attribute is located at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'passAsFile' of derivation 'python3-3.12.4-env'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/build-support/trivial-builders/default.nix:69:9:
           68|         inherit buildCommand name;
           69|         passAsFile = [ "buildCommand" ]
             |         ^
           70|           ++ (derivationArgs.passAsFile or [ ]);

       (6 duplicate frames omitted)

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

       … from call site
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/interpreters/python/wrapper.nix:20:13:
           19|   env = let
           20|     paths = requiredPythonModules (extraLibs ++ [ python ] ) ;
             |             ^
           21|     pythonPath = "${placeholder "out"}/${python.sitePackages}";

       … while calling 'requiredPythonModules'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/interpreters/python/python-packages-base.nix:54:27:
           53|   # Get list of required Python modules given a list of derivations.
           54|   requiredPythonModules = drvs: let
             |                           ^
           55|     modules = lib.filter hasPythonModule drvs;

       … while calling the 'foldl'' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/interpreters/python/python-packages-base.nix:56:6:
           55|     modules = lib.filter hasPythonModule drvs;
           56|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           57|

       … while calling anonymous lambda
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:1793:25:
         1792|   */
         1793|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                         ^
         1794|

       … while evaluating a branch condition
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:1793:28:
         1792|   */
         1793|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                            ^
         1794|

       … while calling the 'elem' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/lists.nix:1793:31:
         1792|   */
         1793|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                               ^
         1794|

       … while evaluating the attribute 'outPath'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/customisation.nix:366:7:
          365|       drvPath = assert condition; drv.drvPath;
          366|       outPath = assert condition; drv.outPath;
             |       ^
          367|     };

       … while evaluating the attribute 'outPath'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/customisation.nix:366:7:
          365|       drvPath = assert condition; drv.drvPath;
          366|       outPath = assert condition; drv.outPath;
             |       ^
          367|     };

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

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

       … while evaluating derivation 'python3.12-binwalk-2.3.4'
         whose name attribute is located at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-binwalk-2.3.4'
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-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;

       … in the condition of the assert statement
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/lib/customisation.nix:352:23:
          351|             drvPath = assert condition; drv.${outputName}.drvPath;
          352|             outPath = assert condition; drv.${outputName}.outPath;
             |                       ^
          353|           } //

       … in the right operand of the IMPL (->) operator
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/interpreters/python/mk-python-derivation.nix:350:13:
          349| in extendDerivation
          350|   (disabled -> throw "${name} not supported for interpreter ${python.executable}")
             |             ^
          351|   passthru

       … while calling the 'throw' builtin
         at /mnt/nix/store/ar3hw3m5aj13g1nz3yd8fsg7my53x0vn-source/pkgs/development/interpreters/python/mk-python-derivation.nix:350:16:
          349| in extendDerivation
          350|   (disabled -> throw "${name} not supported for interpreter ${python.executable}")
             |                ^
          351|   passthru

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

kennystrawnmusic avatar Jul 09 '24 15:07 kennystrawnmusic

Same issue with keyd

lukeleheny avatar Jul 09 '24 15:07 lukeleheny

Binwalk is also having this issue

see https://github.com/NixOS/nixpkgs/pull/325623 and https://github.com/NixOS/nixpkgs/pull/325865

Same issue with keyd

fixed by https://github.com/NixOS/nixpkgs/pull/325872

dotlambda avatar Jul 09 '24 15:07 dotlambda

@fpletz the issue is still there. Here the trace:

error:
       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1571:24:

         1570|     let f = attrPath:
         1571|       zipAttrsWith (n: values:
             |                        ^
         1572|         let here = attrPath ++ [n]; in

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1205:18:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/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.build.toplevel':

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:908:25:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:71:12:

           70|   # Replace runtime dependencies
           71|   system = foldr ({ oldDependency, newDependency }: drv:
             |            ^
           72|       pkgs.replaceDependency { inherit oldDependency newDependency drv; }

       … while calling 'foldr'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:121:20:

          120|   */
          121|   foldr = op: nul: list:
             |                    ^
          122|     let

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:128:8:

          127|         else op (elemAt list n) (fold' (n + 1));
          128|     in fold' 0;
             |        ^
          129|

       … while calling 'fold''

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:124:15:

          123|       len = length list;
          124|       fold' = n:
             |               ^
          125|         if n == len

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:68:10:

           67|     then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
           68|     else showWarnings config.warnings baseSystem;
             |          ^
           69|

       … while calling 'showWarnings'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:927:28:

          926|
          927|   showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings;
             |                            ^
          928|

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:927:33:

          926|
          927|   showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings;
             |                                 ^
          928|

       … while calling 'foldr'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:121:20:

          120|   */
          121|   foldr = op: nul: list:
             |                    ^
          122|     let

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:128:8:

          127|         else op (elemAt list n) (fold' (n + 1));
          128|     in fold' 0;
             |        ^
          129|

       … while calling 'fold''

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:124:15:

          123|       len = length list;
          124|       fold' = n:
             |               ^
          125|         if n == len

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1205:18:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/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 `warnings':

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix':

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:908:25:

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

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1096:10:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1096:16:

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

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:443:16:

          442|       mapAttrsToList
          443|         (name: service:
             |                ^
          444|           let

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:450:16:

          449|             concatLists [
          450|               (optional (type == "oneshot" && (restart == "always" || restart == "on-success"))
             |                ^
          451|                 "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'"

       … while calling 'optional'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:784:20:

          783|   */
          784|   optional = cond: elem: if cond then [elem] else [];
             |                    ^
          785|

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1205:18:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/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 `systemd.services.home-manager-athena.serviceConfig':

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:858:59:

          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 'merge'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:582:20:

          581|       check = isAttrs;
          582|       merge = loc: defs:
             |                    ^
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:583:35:

          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                   ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … while calling 'filterAttrs'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:646:5:

          645|     pred:
          646|     set:
             |     ^
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:647:29:

          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                             ^
          648|

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:647:62:

          646|     set:
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
             |                                                              ^
          648|

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:583:51:

          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                                   ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:583:86:

          582|       merge = loc: defs:
          583|         mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
             |                                                                                      ^
          584|             (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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 `/home/athena/athena-nix/nixos/configuration.nix':

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:908:25:

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

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

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

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/build-support/trivial-builders/default.nix:68:16:

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

       … while evaluating derivation 'activation-script'
         whose name attribute is located at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:332:7

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

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/build-support/trivial-builders/default.nix:103:16:

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

       … while calling 'mkCmd'

         at /nix/store/xcxs3wp2jn8kv9jj176xy3x94blv28bh-source/modules/home-environment.nix:666:17:

          665|       let
          666|         mkCmd = res: ''
             |                 ^
          667|             _iNote "Activating %s" "${res.name}"

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1205:18:

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

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/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.athena.home.activation.installPackages.data':

       … while calling anonymous lambda

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/home-environment.nix':

       … from call site

         at /nix/var/nix/profiles/per-user/root/channels/nixos/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/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:908:25:

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

       … while evaluating derivation 'home-manager-path'
         whose name attribute is located at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'passAsFile' of derivation 'home-manager-path'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/build-support/trivial-builders/default.nix:69:9:

           68|         inherit buildCommand name;
           69|         passAsFile = [ "buildCommand" ]
             |         ^
           70|           ++ (derivationArgs.passAsFile or [ ]);

       … while evaluating derivation 'neofetch-unstable-2021-12-10'
         whose name attribute is located at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'postInstall' of derivation 'neofetch-unstable-2021-12-10'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/tools/misc/neofetch/default.nix:45:3:

           44|
           45|   postInstall = ''
             |   ^
           46|     wrapProgram $out/bin/neofetch \

       … from call site

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/tools/misc/neofetch/default.nix:47:25:

           46|     wrapProgram $out/bin/neofetch \
           47|       --prefix PATH : ${lib.makeBinPath ([ pciutils ] ++ lib.optional x11Support ueberzug) }
             |                         ^
           48|   '';

       … while calling 'makeSearchPathOutput'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/lib/strings.nix:195:5:

          194|     # List of packages
          195|     pkgs: makeSearchPath subDir (map (lib.getOutput output) pkgs);
             |     ^
          196|

       … from call site

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/lib/strings.nix:195:11:

          194|     # List of packages
          195|     pkgs: makeSearchPath subDir (map (lib.getOutput output) pkgs);
             |           ^
          196|

       … while calling 'makeSearchPath'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/lib/strings.nix:175:5:

          174|     # List of base paths
          175|     paths:
             |     ^
          176|     concatStringsSep ":" (map (path: path + "/" + subDir) (filter (x: x != null) paths));

       … while calling anonymous lambda

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/lib/strings.nix:176:32:

          175|     paths:
          176|     concatStringsSep ":" (map (path: path + "/" + subDir) (filter (x: x != null) paths));
             |                                ^
          177|

       … while evaluating derivation 'python3.12-ueberzug-18.1.9'
         whose name attribute is located at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'python3.12-ueberzug-18.1.9'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/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-xlib-0.33'
         whose name attribute is located at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-xlib-0.33'

         at /nix/store/1awhs5c76hzxam966kaypxd6gvn1ggdg-nixos/nixos/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

D3vil0p3r avatar Jul 09 '24 18:07 D3vil0p3r

My issue will be fixed by https://github.com/NixOS/nixpkgs/pull/325676

D3vil0p3r avatar Jul 09 '24 19:07 D3vil0p3r

I have issue during nix-darwin update

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;

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

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

mudrii avatar Jul 10 '24 09:07 mudrii