mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
linuxPackagesFor: wireguard: noop for kernel >= 5.6
(cherry picked from commit 27ca6c2939)
Rationale for backport: it's explicitly supported to build a kernel with
a custom tree. When using a 5.6 tree in a system configuration, eval
will break since `wireguard` is still evaluated and throws an
assertion-error on 5.6 or greater.
This commit is contained in:
committed by
Maximilian Bosch
parent
52577bac4a
commit
60c4ddb97f
@@ -15958,7 +15958,7 @@ in
|
||||
virtualbox = pkgs.virtualboxHardened;
|
||||
};
|
||||
|
||||
wireguard = callPackage ../os-specific/linux/wireguard { };
|
||||
wireguard = if lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
|
||||
|
||||
x86_energy_perf_policy = callPackage ../os-specific/linux/x86_energy_perf_policy { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user