mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge: linux: mark <6.12 with Rust as broken, assert on <6.7 with Rust (#346648)
This commit is contained in:
commit
db56cecb0d
@ -34,7 +34,11 @@ let
|
||||
|
||||
# Currently not enabling Rust by default, as upstream requires rustc 1.81
|
||||
defaultRust = false;
|
||||
withRust = (forceRust || defaultRust) && kernelSupportsRust;
|
||||
withRust =
|
||||
assert lib.assertMsg (!(forceRust && !kernelSupportsRust)) ''
|
||||
Kernels below 6.7 (the kernel being built is ${version}) don't support Rust.
|
||||
'';
|
||||
(forceRust || defaultRust) && kernelSupportsRust;
|
||||
|
||||
options = {
|
||||
|
||||
|
@ -396,6 +396,9 @@ let
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
|
||||
meta = {
|
||||
# https://github.com/NixOS/nixpkgs/pull/345534#issuecomment-2391238381
|
||||
broken = withRust && lib.versionOlder version "6.12";
|
||||
|
||||
description =
|
||||
"The Linux kernel" +
|
||||
(if kernelPatches == [] then "" else
|
||||
|
Loading…
Reference in New Issue
Block a user