From 60c4ddb97fd5a730b93d759754c495e1fe8a3544 Mon Sep 17 00:00:00 2001 From: David Terry Date: Mon, 30 Dec 2019 23:09:26 +0100 Subject: [PATCH] linuxPackagesFor: wireguard: noop for kernel >= 5.6 (cherry picked from commit 27ca6c29398125784d07f4d5f447407550bc1c80) 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. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ae417072cb5..61c79f801b4c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };