nixosTests.kernel-generic: fix the eval

Without the change the eval fails as:

    $ nix build --no-link -f. nixosTests.kernel-generic
    error:
       error: value is a Boolean while a set was expected

This started happening after 80472e3754 "treewide: add
__attrsFailEvaluation and __recurseIntoDerivationForReleaseJobs"

As a result kernel attribute set got not just `kernel => drv` maps but
also `__attrsFailEvaluation => bool` one. It does not contain `name` and
fails the evaluation without recovery.

The change restores evaluation for me.
This commit is contained in:
Sergei Trofimovich
2024-01-01 09:21:59 +00:00
parent 3d54a95d71
commit db45ed3801
+1 -1
View File
@@ -23,7 +23,7 @@ let
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
'';
}) args);
kernels = pkgs.linuxKernel.vanillaPackages // {
kernels = (removeAttrs pkgs.linuxKernel.vanillaPackages ["__attrsFailEvaluation"]) // {
inherit (pkgs.linuxKernel.packages)
linux_4_19_hardened
linux_5_4_hardened