mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 00:10:30 +00:00
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:
parent
ce8cd5fd00
commit
97a2ef37c0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue