kernels: set testing to latest if it's newer

Closes https://github.com/NixOS/nixpkgs/pull/130872
This commit is contained in:
Atemu 2021-11-07 12:18:12 +01:00 committed by Alyssa Ross
parent 8d0f1c1725
commit 92029c12ee

View file

@ -173,12 +173,17 @@ in {
];
};
linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
];
};
linux_testing = let
testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
];
};
latest = packageAliases.linux_latest.kernel;
in if latest.kernelAtLeast testing.baseVersion
then latest
else testing;
linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix rec {
kernel = linux_5_15;