NixOS config does not eval after last update

; nix eval --show-trace .#nixosConfigurations.base.config.system.build.toplevel
def-matcher: command not found
warning: Git tree '/home/me/src/my-nixos-conf' is dirty
error: anonymous function at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/python/fetchpypi.nix:26:6:

           25|     url = computeUrl (builtins.removeAttrs attrs ["sha256" "hash"]) ;
           26|   in fetchurl {
             |      ^
           27|     inherit url sha256 hash;

       … while evaluating anonymous lambda

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/python/fetchpypi.nix:23:21:

           22|
           23| in makeOverridable( {format ? "setuptools", sha256 ? "", hash ? "", ... } @attrs:
             |                     ^
           24|   let

       … from call site

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:69:16:

           68|     let
           69|       result = f origArgs;
             |                ^
           70|

       … while evaluating 'makeOverridable'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:67:24:

           66|   */
           67|   makeOverridable = f: origArgs:
             |                        ^
           68|     let

       … from call site

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/tools/build-managers/meson/0.57/default.nix:13:9:

           12|
           13|   src = python3.pkgs.fetchPypi {
             |         ^
           14|     inherit pname version;

       … while evaluating the attribute 'src.name'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/tools/build-managers/meson/0.57/default.nix:13:3:

           12|
           13|   src = python3.pkgs.fetchPypi {
             |   ^
           14|     inherit pname version;

       … while evaluating 'hasSuffix'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/strings.nix:234:5:

          233|     # Input string
          234|     content:
             |     ^
          235|     let

       … from call site

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/python/mk-python-derivation.nix:127:25:

          126|       pythonRemoveBinBytecodeHook
          127|     ] ++ lib.optionals (lib.hasSuffix "zip" (attrs.src.name or "")) [
             |                         ^
          128|       unzip

       … while evaluating 'optionals'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/lists.nix:270:5:

          269|     # List to return if condition is true
          270|     elems: if cond then elems else [];
             |     ^
          271|

       … from call site

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/python/mk-python-derivation.nix:127:10:

          126|       pythonRemoveBinBytecodeHook
          127|     ] ++ lib.optionals (lib.hasSuffix "zip" (attrs.src.name or "")) [
             |          ^
          128|       unzip

       … while evaluating 'chooseDevOutputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/attrsets.nix:498:22:

          497|   /* Pick the outputs of packages to place in buildInputs */
          498|   chooseDevOutputs = drvs: builtins.map getDev drvs;
             |                      ^
          499|

       … from call site

       … while evaluating the attribute 'nativeBuildInputs' of the derivation 'meson-0.57.1'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'out.outPath'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:157:13:

          156|             drvPath = assert condition; drv.${outputName}.drvPath;
          157|             outPath = assert condition; drv.${outputName}.outPath;
             |             ^
          158|           };

       … while evaluating the attribute 'nativeBuildInputs' of the derivation 'xorgproto-2021.5'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'buildInputs' of the derivation 'libX11-1.7.2'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'buildInputs' of the derivation 'libglvnd-1.4.0'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'buildCommand' of the derivation 'libGL-1.4.0'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'propagatedBuildInputs' of the derivation 'glu-9.0.2'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'buildInputs' of the derivation 'perl5.34.0-OpenGL-0.70'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'drvPath'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:163:7:

          162|     in commonAttrs // {
          163|       drvPath = assert condition; drv.drvPath;
             |       ^
          164|       outPath = assert condition; drv.outPath;

       … while evaluating the attribute 'OpenGL'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/top-level/perl-packages.nix:17002:3:

        17001|
        17002|   OpenGL = buildPerlPackage rec {
             |   ^
        17003|     pname = "OpenGL";

       … while evaluating the attribute 'pkgs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/perl/default.nix:134:7:

          133|       libPrefix = "lib/perl5/site_perl";
          134|       pkgs = callPackage ../../../top-level/perl-packages.nix {
             |       ^
          135|         inherit perl buildPerl;

       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'nativeBuildInputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:244:7:

          243|       depsBuildBuild              = lib.elemAt (lib.elemAt dependencies 0) 0;
          244|       nativeBuildInputs           = lib.elemAt (lib.elemAt dependencies 0) 1;
             |       ^
          245|       depsBuildTarget             = lib.elemAt (lib.elemAt dependencies 0) 2;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'version'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/top-level/perl-packages.nix:25434:3:

        25433|   SubExporterUtil = self.SubExporter;
        25434|   version = self.Version;
             |   ^
        25435|

       … while evaluating the attribute 'pkgs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/development/interpreters/perl/default.nix:134:7:

          133|       libPrefix = "lib/perl5/site_perl";
          134|       pkgs = callPackage ../../../top-level/perl-packages.nix {
             |       ^
          135|         inherit perl buildPerl;

       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'nativeBuildInputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:244:7:

          243|       depsBuildBuild              = lib.elemAt (lib.elemAt dependencies 0) 0;
          244|       nativeBuildInputs           = lib.elemAt (lib.elemAt dependencies 0) 1;
             |       ^
          245|       depsBuildTarget             = lib.elemAt (lib.elemAt dependencies 0) 2;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'nativeBuildInputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:244:7:

          243|       depsBuildBuild              = lib.elemAt (lib.elemAt dependencies 0) 0;
          244|       nativeBuildInputs           = lib.elemAt (lib.elemAt dependencies 0) 1;
             |       ^
          245|       depsBuildTarget             = lib.elemAt (lib.elemAt dependencies 0) 2;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'bintools_bin'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/build-support/bintools-wrapper/default.nix:105:10:

          104|
          105|   inherit bintools_bin libc_bin libc_dev libc_lib coreutils_bin;
             |          ^
          106|   shell = getBin shell + shell.shellPath or "";

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'bintools'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/build-support/cc-wrapper/default.nix:133:10:

          132|
          133|   inherit cc libc_bin libc_dev libc_lib bintools coreutils_bin;
             |          ^
          134|   shell = getBin shell + shell.shellPath or "";

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'defaultNativeBuildInputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/default.nix:131:14:

          130|
          131|       inherit initialPath shell
             |              ^
          132|         defaultNativeBuildInputs defaultBuildInputs;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at //builtin/derivation.nix:18:7:
       … while evaluating the attribute 'all'

       at //builtin/derivation.nix:12:7:
       … while evaluating the attribute 'stdenv'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:228:14:

          227|       args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
          228|       inherit stdenv;
             |              ^
          229|

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'defaultNativeBuildInputs'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/default.nix:131:14:

          130|
          131|       inherit initialPath shell
             |              ^
          132|         defaultNativeBuildInputs defaultBuildInputs;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at //builtin/derivation.nix:18:7:
       … while evaluating the attribute 'all'

       at //builtin/derivation.nix:12:7:
       … while evaluating the attribute 'stdenv'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:228:14:

          227|       args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
          228|       inherit stdenv;
             |              ^
          229|

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

       … while evaluating the attribute 'initialPath'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/default.nix:131:14:

          130|
          131|       inherit initialPath shell
             |              ^
          132|         defaultNativeBuildInputs defaultBuildInputs;

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at //builtin/derivation.nix:18:7:
       … while evaluating the attribute 'all'

       at //builtin/derivation.nix:12:7:
       … while evaluating the attribute 'stdenv'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/pkgs/stdenv/generic/make-derivation.nix:228:14:

          227|       args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
          228|       inherit stdenv;
             |              ^
          229|

       … while evaluating the attribute 'drvAttrs'

       at //builtin/derivation.nix:13:14:
       … while evaluating the attribute 'out'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:153:11:

          152|         { name = outputName;
          153|           value = commonAttrs // {
             |           ^
          154|             inherit (drv.${outputName}) type outputName;

       … while evaluating the attribute 'all'

       at /nix/store/iy5r22pk58fphs45lbvi7x6dqdpcxra7-source/lib/customisation.nix:149:12:

          148|       commonAttrs = drv // (builtins.listToAttrs outputsList) //
          149|         ({ all = map (x: x.value) outputsList; }) // passthru;
             |            ^
          150|

The same configuration did compile fine until 2-3 days ago.

Note that the above error I get it even after commenting every possible module and using nixpkgs’ master branch

Have you tied using nix build instead? I’m not aware, that there ever was a time when you could eval the toplevel.

Ok now it builds without problems

Still I thought that nix build would do a nix eval beforehand.