mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
buildLinux: use lib.toFunction
Refactor expression trivially with `lib.toFunction`.
This commit is contained in:
parent
420855783d
commit
e768da839b
@ -231,7 +231,7 @@ let
|
||||
override = args:
|
||||
lib.warn (
|
||||
"override is stubbed for NixOS kernel tests, not applying changes these arguments: "
|
||||
+ toString (lib.attrNames (if lib.isAttrs args then args else args {}))
|
||||
+ toString (lib.attrNames (lib.toFunction args { }))
|
||||
) overridableKernel;
|
||||
};
|
||||
in [ (nixosTests.kernel-generic.passthru.testsForKernel overridableKernel) ] ++ kernelTests;
|
||||
|
Loading…
Reference in New Issue
Block a user