diff options
author | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-02-05 02:57:23 +0800 |
---|---|---|
committer | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-02-05 02:57:55 +0800 |
commit | e768da839bba8e571e12305369edd6e6dc83ebc0 (patch) | |
tree | d100a08bbefb0560325084b32d3a1a890d272c7b /pkgs/os-specific | |
parent | 420855783d75922be8c0ed1da6e6ac10ba400f0e (diff) |
buildLinux: use lib.toFunction
Refactor expression trivially with `lib.toFunction`.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index a2f80505cd95d..8ff8dcff0b385 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -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; |