mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
perf: define only if kernel version > 3.12
In mobile-nixos, some vendor kernels might be old. Without this patch, the evaluation of the system fails by the assert inside the perf derivation.
This commit is contained in:
parent
4d8d997105
commit
94b5fbe5e7
@ -20394,7 +20394,7 @@ in
|
||||
|
||||
oci-seccomp-bpf-hook = if lib.versionAtLeast kernel.version "5.4" then callPackage ../os-specific/linux/oci-seccomp-bpf-hook { } else null;
|
||||
|
||||
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
||||
perf = if lib.versionAtLeast kernel.version "3.12" then callPackage ../os-specific/linux/kernel/perf.nix { } else null;
|
||||
|
||||
phc-intel = if lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user