linux_5_4_hardened: use meta.broken, not assert

Respects NIXPKGS_ALLOW_BROKEN and allows attributes to be accessed.
This commit is contained in:
Alyssa Ross 2023-02-21 23:41:34 +00:00
parent a3c21220fd
commit bfef542b67
2 changed files with 3 additions and 1 deletions

View file

@ -15,7 +15,6 @@ with lib.kernel;
with (lib.kernel.whenHelpers version);
assert (versionAtLeast version "4.9");
assert (stdenv.hostPlatform.isx86_64 -> versions.majorMinor version != "5.4");
{
# Report BUG() conditions and kill the offending process.

View file

@ -45,6 +45,9 @@ let
url = "mirror://kernel/linux/kernel/v${major}.x/linux-${version}.tar.xz";
inherit sha256;
};
extraMeta = {
broken = kernel.meta.broken || (stdenv.isx86_64 && lib.versions.majorMinor version == "5.4");
};
};
kernelPatches = kernel.kernelPatches ++ [
kernelPatches.hardened.${kernel.meta.branch}