phc-intel: Don't define the package if the assert would fail.

If the kernel is too old one gets the assertion error, even if nothing specifically request that package. Some code must be going through all defined kernel module packages that triggers the assert.
This commit is contained in:
Ambroz Bizjak 2019-09-03 21:04:14 +02:00
parent ce8cd5fd00
commit 97a2ef37c0

View file

@ -15923,7 +15923,7 @@ in
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
phc-intel = callPackage ../os-specific/linux/phc-intel { };
phc-intel = if stdenv.lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null;
# Disable for kernels 4.15 and above due to compatibility issues
prl-tools = if stdenv.lib.versionOlder kernel.version "4.15" then callPackage ../os-specific/linux/prl-tools { } else null;